|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.client.CachingStoreClientFactory
public class CachingStoreClientFactory
A wrapper for a store StoreClientFactory
which caches requests to
getStoreClient
Constructor Summary | |
---|---|
CachingStoreClientFactory(StoreClientFactory inner)
|
Method Summary | ||
---|---|---|
void |
bootstrapAllClients()
|
|
void |
clear()
|
|
void |
close()
Close the store client |
|
FailureDetector |
getFailureDetector()
Returns the FailureDetector specific to the cluster against which this client factory is based. |
|
|
getRawStore(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
Get the underlying store, not the public StoreClient interface |
|
|
getStoreClient(java.lang.String storeName)
Get a StoreClient for the given store. |
|
|
getStoreClient(java.lang.String storeName,
InconsistencyResolver<Versioned<V>> resolver)
Get a StoreClient for the given store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachingStoreClientFactory(StoreClientFactory inner)
Method Detail |
---|
public <K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName)
StoreClientFactory
StoreClient
for the given store.
getStoreClient
in interface StoreClientFactory
K
- The type of the key of the
StoreClient
V
- The type of the value of the
StoreClient
storeName
- The name of the store
StoreClient
public <K,V> StoreClient<K,V> getStoreClient(java.lang.String storeName, InconsistencyResolver<Versioned<V>> resolver)
StoreClientFactory
StoreClient
for the given store.
getStoreClient
in interface StoreClientFactory
K
- The type of the key of the
StoreClient
V
- The type of the value of the
StoreClient
storeName
- The name of the storeresolver
- The
InconsistencyResolver
that should be
used to resolve inconsistencies.
StoreClient
public <K,V,T> Store<K,V,T> getRawStore(java.lang.String storeName, InconsistencyResolver<Versioned<V>> resolver)
StoreClientFactory
getRawStore
in interface StoreClientFactory
storeName
- The name of the storeresolver
- The inconsistency resolver
public void close()
StoreClientFactory
close
in interface StoreClientFactory
public FailureDetector getFailureDetector()
StoreClientFactory
getFailureDetector
in interface StoreClientFactory
public void clear()
public void bootstrapAllClients()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |