public interface IRemoteCacheAttributes extends ICommonRemoteCacheAttributes
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_RECEIVE
If RECEIVE is false then the remote cache will not register a listener with the remote
server.
|
static int |
DEFAULT_ZOMBIE_QUEUE_MAX_SIZE
The number of elements the zombie queue will hold.
|
DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS
Modifier and Type | Method and Description |
---|---|
int |
getFailoverIndex()
Gets the failoverIndex attribute of the IRemoteCacheAttributes object.
|
List<RemoteLocation> |
getFailovers()
Gets the failovers attribute of the IRemoteCacheAttributes object
|
String |
getFailoverServers()
Gets the failoverServers attribute of the IRemoteCacheAttributes object
|
int |
getGetTimeoutMillis()
-1 and 0 mean no timeout, this is the default if the timeout is -1 or 0, no threadpool will
be used.
|
int |
getLocalPort()
Gets the localPort attribute of the IRemoteCacheAttributes object
|
String |
getThreadPoolName()
The thread pool the remote cache should use.
|
int |
getZombieQueueMaxSize()
The number of elements the zombie queue will hold.
|
boolean |
isReceive()
If RECEIVE is false then the remote cache will not register a listener with the remote
server.
|
void |
setFailoverIndex(int p)
Sets the failoverIndex attribute of the IRemoteCacheAttributes object
|
void |
setFailovers(List<RemoteLocation> failovers)
Sets the failovers attribute of the IRemoteCacheAttributes object
|
void |
setFailoverServers(String s)
Sets the failoverServers attribute of the IRemoteCacheAttributes object
|
void |
setGetTimeoutMillis(int millis)
-1 means no timeout, this is the default if the timeout is -1 or 0, no threadpool will be
used.
|
void |
setLocalPort(int p)
Sets the localPort attribute of the IRemoteCacheAttributes object
|
void |
setReceive(boolean receive)
By default this option is true.
|
void |
setThreadPoolName(String name)
Set the name of the pool to use.
|
void |
setZombieQueueMaxSize(int zombieQueueMaxSize)
The number of elements the zombie queue will hold.
|
getClusterServers, getGetOnly, getRemoteLocation, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteLocation, setRemoteLocation, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillis
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
static final boolean DEFAULT_RECEIVE
If you set this option to false, you should set your local memory size to 0.
static final int DEFAULT_ZOMBIE_QUEUE_MAX_SIZE
int getFailoverIndex()
This specifies which server in the list we are listening to if the number is greater than 0 we will try to move to 0 position the primary is added as position 1 if it is present
void setFailoverIndex(int p)
p
- The new failoverIndex valueList<RemoteLocation> getFailovers()
void setFailovers(List<RemoteLocation> failovers)
failovers
- The new failovers valueint getLocalPort()
void setLocalPort(int p)
p
- The new localPort valueString getFailoverServers()
void setFailoverServers(String s)
s
- The new failoverServers valueString getThreadPoolName()
The default name is "remote_cache_client"
void setThreadPoolName(String name)
name
- int getGetTimeoutMillis()
void setGetTimeoutMillis(int millis)
millis
- void setReceive(boolean receive)
receive
- boolean isReceive()
If you set this option to false, you should set your local memory size to 0.
The remote cache manager uses this value to decide whether or not to register a listener.
It makes no sense to configure a cluster remote cache to no receive.
Since a non-receiving remote cache client will not register a listener, it will not have a listener id assigned from the server. As such the remote server cannot determine if it is a cluster or a normal client. It will assume that it is a normal client.
void setZombieQueueMaxSize(int zombieQueueMaxSize)
zombieQueueMaxSize
- The zombieQueueMaxSize to set.int getZombieQueueMaxSize()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.