|
| RemoteCacheManager (bool start=true) |
| Construct an instance with default configuration and marshaller. More...
|
|
| RemoteCacheManager (Configuration configuration, bool start=true) |
| Construct an instance with specific configuration. More...
|
|
| RemoteCacheManager (Configuration configuration, IMarshaller marshaller, bool start=true, IMarshaller argMarshaller=null) |
| Construct an instance with specific configuration and serializer. More...
|
|
| RemoteCacheManager (IMarshaller marshaller, bool start=true, IMarshaller argMarshaller=null) |
| Construct an instance with default configuration and specific serializer. More...
|
|
void | Start () |
| Starts the manager. More...
|
|
void | Stop () |
| Stops the manager. More...
|
|
bool | IsStarted () |
| Can be used to check if the manager is started or not. More...
|
|
IRemoteCache< K, V > | GetCache< K, V > (IMarshaller m=null) |
| Retrieves the default cache from the remote server. More...
|
|
IRemoteCache< K, V > | GetCache< K, V > (String cacheName, IMarshaller m=null) |
| Retrieves a named cache from the remote server. If the cache has been previously created with the same name, the running cache instance is returned. Otherwise, this method attempts to create the cache first. More...
|
|
IRemoteCache< K, V > | GetCache< K, V > (bool forceReturnValue, IMarshaller m=null) |
| Retrieves the default cache from the remote server. More...
|
|
IRemoteCache< K, V > | GetCache< K, V > (String cacheName, bool forceReturnValue, IMarshaller m=null) |
| Retrieves a named cache from the remote server. If the cache has been previously created with the same name, the running cache instance is returned. Otherwise, this method attempts to create the cache first. More...
|
|
bool | SwitchToCluster (string clusterName) |
| Perform a cluster switch to the cluster with name clusterName More...
|
|
bool | SwitchToDefaultCluster () |
| Perform a cluster switch to the default cluster (the one defined by ConfigurationBuilder.addServer() method) More...
|
|
Factory for IRemoteCache instances.
Lifecycle: In order to be able to use an IRemoteCache, the RemoteCacheManager must be started first: beside other things, this instantiates connections to Hot Rod server(s). Starting the RemoteCacheManager can be done either at creation by passing start==true to constructor or by using a constructor that does that for you (see C-tor documentation); or after construction by calling Start().
This is an "expensive" object, as it manages a set of persistent TCP connections to the Hot Rod servers. It is recommended to only have one instance of this per process, and to cache it between calls to the server (i.e. remoteCache operations).
Stop() needs to be called explicitly in order to release all the resources (e.g. threads, TCP connections).