60
56
final String CACHE_STATISTICS_RESET = "CacheStatisticsReset";
63
* Is the cache enabled?
68
59
* Enabled/disable cache coherence mode for this node.
69
61
* @deprecated use {@link #setNodeBulkLoadEnabled(boolean)} instead
72
64
void setNodeCoherent(boolean coherent);
75
* Enabled/disable bulk-load mode for this node.
77
void setNodeBulkLoadEnabled(boolean bulkLoadEnabled);
80
67
* Is the cache coherent cluster-wide?
81
69
* @deprecated use {@link #isClusterBulkLoadEnabled()} instead
84
72
boolean isClusterCoherent();
87
* Is the cache in bulk-load mode cluster-wide?
89
boolean isClusterBulkLoadEnabled();
92
75
* Is the cache coherent locally?
93
77
* @deprecated use {@link #isNodeBulkLoadEnabled()} instead
96
80
boolean isNodeCoherent();
99
* Is the cache in bulk-load mode locally?
101
boolean isNodeBulkLoadEnabled();
104
* Enabled/disable the cache.
106
void setEnabled(boolean enabled);
109
* Removes all cached items.
114
* Flushes all cache items from memory to the disk store, and from the
120
* Gets the status attribute of the Cache.
122
* @return The status value from the Status enum class
127
* Is the cache configured with Terracotta clustering?
129
* @return true if clustered with terracotta
131
boolean isTerracottaClustered();
134
* Returns a textual description of a Terracotta-clustered cache's consistency mode.
135
* @return "STRONG", "EVENTUAL", or "na" if the cache is not Terracotta-clustered
137
String getTerracottaConsistency();
140
* Returns a textual description of a Terracotta-clustered cache's storage-strategy.
141
* @return "CDV2", "CLASSIC", or "na" if the cache is not Terracotta-clustered
143
String getTerracottaStorageStrategy();
146
* Clear both sampled and cumulative statistics
148
void clearStatistics();
151
* Enables statistics collection
153
void enableStatistics();
156
* Disables statistics collection. Also disables sampled statistics if it is
159
void disableStatistics();
162
* Controls the statistics. Also controls sampled statistics if it is
165
void setStatisticsEnabled(boolean statsEnabled);
168
* Enables statistics collection. As it requires that normal statistics
169
* collection to be enabled, it enables it if its not already
171
void enableSampledStatistics();
174
* Disables statistics collection
176
void disableSampledStatistics();
179
* Configuration property accessor
181
* @return Max entries local heap config setting value
183
long getMaxEntriesLocalHeap();
186
* setMaxEntriesLocalHeap
189
void setMaxEntriesLocalHeap(long maxEntries);
192
83
* Configuration property accessor
194
85
* @return Max elements in memory config setting value
201
92
* setMaxElementsInMemory
202
94
* @param maxElements
95
* @deprecated use {@link #setMaxEntriesLocalHeap()} instead
204
98
void setMaxElementsInMemory(int maxElements);
207
* Configuration property accessor
209
* @return Max bytes local heap config setting value
211
long getMaxBytesLocalHeap();
214
* setMaxBytesLocalHeap
217
void setMaxBytesLocalHeap(long maxBytes);
220
* setMaxBytesLocalHeap
223
void setMaxBytesLocalHeapAsString(String maxBytes);
226
* Configuration property accessor
228
* @return Max bytes local heap config setting value as string
230
String getMaxBytesLocalHeapAsString();
233
* Configuration property accessor
235
* @return Max bytes local offheap config setting value
237
long getMaxBytesLocalOffHeap();
240
* Configuration property accessor
242
* @return Max bytes local offheap config setting value as string
244
String getMaxBytesLocalOffHeapAsString();
247
* Configuration property accessor
249
* @return Max entries local disk config setting value
251
long getMaxEntriesLocalDisk();
254
* setMaxEntriesLocalDisk
257
void setMaxEntriesLocalDisk(long maxEntries);
260
* Configuration property accessor
262
* @return Max elements on disk config setting value
263
* @deprecated use {@link #getMaxEntriesLocalDisk()} instead
266
int getMaxElementsOnDisk();
269
* setMaxElementsOnDisk
272
void setMaxElementsOnDisk(int maxElements);
275
* Configuration property accessor
277
* @return Max bytes local disk config setting value
279
long getMaxBytesLocalDisk();
282
* setMaxBytesLocalDisk
285
void setMaxBytesLocalDisk(long maxBytes);
288
* setMaxBytesLocalDisk
291
void setMaxBytesLocalDiskAsString(String maxBytes);
294
* Configuration property accessor
296
* @return Max bytes local disk config setting value as string
298
String getMaxBytesLocalDiskAsString();
301
* Configuration property accessor
303
* @return a String representation of the policy
305
String getMemoryStoreEvictionPolicy();
308
* setMemoryStoreEvictionPolicy
309
* @param evictionPolicy
311
void setMemoryStoreEvictionPolicy(String evictionPolicy);
314
* Configuration property accessor
316
* @return true if set to eternal in config
324
void setEternal(boolean eternal);
327
* Configuration property accessor
329
* @return TTI in config
331
long getTimeToIdleSeconds();
334
* setTimeToIdleSeconds
337
void setTimeToIdleSeconds(long tti);
340
* Configuration property accessor
342
* @return TTL in config
344
long getTimeToLiveSeconds();
347
* setTimeToLiveSeconds
350
void setTimeToLiveSeconds(long ttl);
353
* Configuration property accessor
355
* @return true if overflow to disk specified in config
357
boolean isOverflowToDisk();
361
* @param overflowToDisk
363
void setOverflowToDisk(boolean overflowToDisk);
366
* Configuration property accessor
368
* @return true if configured with disk persistence
370
boolean isDiskPersistent();
374
* @param diskPersistent
376
void setDiskPersistent(boolean diskPersistent);
379
* Configuration property accessor
381
* @return Value for disk expiry thread interval in seconds specified in config
383
long getDiskExpiryThreadIntervalSeconds();
386
* setDiskExpiryThreadIntervalSeconds
389
void setDiskExpiryThreadIntervalSeconds(long seconds);
392
* Configuration property accessor
394
* @return true if logging is enabled on the cache
396
boolean isLoggingEnabled();
402
void setLoggingEnabled(boolean enabled);
405
* Configuration property accessor
407
* @return true if the cache is pinned
408
* @see net.sf.ehcache.config.PinningConfiguration
413
* Configuration property accessor
415
* @return the store to which this cache is pinned
416
* @see net.sf.ehcache.config.PinningConfiguration
418
String getPinnedToStore();
421
* Is there a registered Write-behind CacheWriter
423
boolean getHasWriteBehindWriter();
426
* Returns the total length of all write-behind queues for this cache
427
* @return writer-behind queue length
429
long getWriterQueueLength();
432
* Returns the maximum size of any write-behind queues.
433
* @return Maximum elements that can be queued for processing by the write-behind writer
434
* @see net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindMaxQueueSize()
436
int getWriterMaxQueueSize();
439
* Returns the number of configured write-behind queues/threads.
440
* @return Number of configured processing queues/threads for use by the write-behind writer
441
* @see net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency()
443
int getWriterConcurrency();
446
* Is the cache a transactional one
447
* @see net.sf.ehcache.config.CacheConfiguration.TransactionalMode
449
boolean getTransactional();
452
* @return Xa commit rate
454
long getTransactionCommitRate();
457
* @return Xa rollback rate
459
long getTransactionRollbackRate();
462
* Is the cache configured for search
463
* @see net.sf.ehcache.config.Searchable
465
boolean getSearchable();
468
* @return search rate
470
long getCacheSearchRate();
473
* @return search time
475
long getCacheAverageSearchTime();
480
long getCacheHitRate();
483
* @return in-memory hit rate
485
long getCacheInMemoryHitRate();
488
* @return off-heap hit rate
490
long getCacheOffHeapHitRate();
493
* @return on-disk hit rate
495
long getCacheOnDiskHitRate();
500
long getCacheMissRate();
503
* @return in-memory miss rate
505
long getCacheInMemoryMissRate();
508
* @return off-heap miss rate
510
long getCacheOffHeapMissRate();
513
* @return on-disk miss rate
515
long getCacheOnDiskMissRate();
520
long getCachePutRate();
523
* @return update rate
525
long getCacheUpdateRate();
528
* @return remove rate
530
long getCacheRemoveRate();
533
* @return eviction rate
535
long getCacheEvictionRate();
538
* @return expiration rate
540
long getCacheExpirationRate();
543
* @return average get time (ms.)
545
float getCacheAverageGetTime();
b'\\ No newline at end of file'