public interface ClusteringService
extends org.ehcache.spi.persistence.PersistableResourceService
Modifier and Type | Interface and Description |
---|---|
static interface |
ClusteringService.ClusteredCacheIdentifier
A
PersistenceSpaceIdentifier
that can provide an id. |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionRecoveryListener(java.lang.Runnable runnable)
Add a block to execute when the connection is recovered after it was closed.
|
ClusteringServiceConfiguration |
getConfiguration() |
<K,V> org.ehcache.clustered.client.internal.store.ServerStoreProxy |
getServerStoreProxy(ClusteringService.ClusteredCacheIdentifier cacheIdentifier,
org.ehcache.core.spi.store.Store.Configuration<K,V> storeConfig,
org.ehcache.clustered.common.Consistency consistency,
org.ehcache.clustered.client.internal.store.ServerStoreProxy.ServerCallback invalidation)
Gets a
ServerStoreProxy though which a server-resident ServerStore is accessed. |
boolean |
isConnected() |
void |
releaseServerStoreProxy(org.ehcache.clustered.client.internal.store.ServerStoreProxy serverStoreProxy,
boolean isReconnect)
Releases access to a
ServerStoreProxy and the server-resident ServerStore it represents. |
void |
removeConnectionRecoveryListener(java.lang.Runnable runnable)
Remove a block to execute when the connection is recovered after it was closed.
|
ClusteringServiceConfiguration getConfiguration()
boolean isConnected()
<K,V> org.ehcache.clustered.client.internal.store.ServerStoreProxy getServerStoreProxy(ClusteringService.ClusteredCacheIdentifier cacheIdentifier, org.ehcache.core.spi.store.Store.Configuration<K,V> storeConfig, org.ehcache.clustered.common.Consistency consistency, org.ehcache.clustered.client.internal.store.ServerStoreProxy.ServerCallback invalidation) throws org.ehcache.CachePersistenceException
ServerStoreProxy
though which a server-resident ServerStore
is accessed.K
- the cache-exposed key typeV
- the cache-exposed value typecacheIdentifier
- the ClusteredCacheIdentifier
for the cache for which a
ServerStoreProxy
is requestedstoreConfig
- the configuration used for the Store
for which the ServerStoreProxy
is requestedconsistency
- the store's consistencyServerStoreProxy
org.ehcache.CachePersistenceException
- if the cacheIdentifier
is unknown or the ServerStoreProxy
cannot be createdvoid releaseServerStoreProxy(org.ehcache.clustered.client.internal.store.ServerStoreProxy serverStoreProxy, boolean isReconnect)
ServerStoreProxy
and the server-resident ServerStore
it represents.serverStoreProxy
- a ServerStoreProxy
obtained through getServerStoreProxy(org.ehcache.clustered.client.service.ClusteringService.ClusteredCacheIdentifier, org.ehcache.core.spi.store.Store.Configuration<K, V>, org.ehcache.clustered.common.Consistency, org.ehcache.clustered.client.internal.store.ServerStoreProxy.ServerCallback)
isReconnect
- whether client is trying to reconnectvoid addConnectionRecoveryListener(java.lang.Runnable runnable)
runnable
- the execution blockvoid removeConnectionRecoveryListener(java.lang.Runnable runnable)
runnable
- the execution block