public class RemoteCacheAttributes extends CommonRemoteCacheAttributes implements IRemoteCacheAttributes
DEFAULT_RECEIVE, DEFAULT_ZOMBIE_QUEUE_MAX_SIZEDEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS| Constructor and Description |
|---|
RemoteCacheAttributes()
Default constructor for the RemoteCacheAttributes object
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFailoverIndex()
Gets the failoverIndex attribute of the RemoteCacheAttributes object.
|
List<RemoteLocation> |
getFailovers()
Gets the failovers attribute of the RemoteCacheAttributes object.
|
String |
getFailoverServers()
Gets the failoverServers attribute of the RemoteCacheAttributes 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 RemoteCacheAttributes 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 RemoteCacheAttributes object.
|
void |
setFailovers(List<RemoteLocation> failovers)
Sets the failovers attribute of the RemoteCacheAttributes object.
|
void |
setFailoverServers(String s)
Sets the failoverServers attribute of the RemoteCacheAttributes 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 RemoteCacheAttributes 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.
|
String |
toString() |
getClusterServers, getGetOnly, getRemoteLocation, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteLocation, setRemoteLocation, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillisclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClusterServers, getGetOnly, getRemoteLocation, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteLocation, setRemoteLocation, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillisclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNamepublic RemoteCacheAttributes()
public int getFailoverIndex()
getFailoverIndex in interface IRemoteCacheAttributespublic void setFailoverIndex(int p)
setFailoverIndex in interface IRemoteCacheAttributesp - The new failoverIndex valuepublic List<RemoteLocation> getFailovers()
getFailovers in interface IRemoteCacheAttributespublic void setFailovers(List<RemoteLocation> failovers)
setFailovers in interface IRemoteCacheAttributesfailovers - The new failovers valuepublic String getFailoverServers()
getFailoverServers in interface IRemoteCacheAttributespublic void setFailoverServers(String s)
setFailoverServers in interface IRemoteCacheAttributess - The new failoverServers valuepublic int getLocalPort()
getLocalPort in interface IRemoteCacheAttributespublic void setLocalPort(int p)
setLocalPort in interface IRemoteCacheAttributesp - The new localPort valuepublic String getThreadPoolName()
IRemoteCacheAttributesThe default name is "remote_cache_client"
getThreadPoolName in interface IRemoteCacheAttributespublic void setThreadPoolName(String name)
IRemoteCacheAttributessetThreadPoolName in interface IRemoteCacheAttributesname - public int getGetTimeoutMillis()
IRemoteCacheAttributesgetGetTimeoutMillis in interface IRemoteCacheAttributespublic void setGetTimeoutMillis(int millis)
IRemoteCacheAttributessetGetTimeoutMillis in interface IRemoteCacheAttributesmillis - public void setReceive(boolean receive)
setReceive in interface IRemoteCacheAttributesreceive - public 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.
isReceive in interface IRemoteCacheAttributespublic void setZombieQueueMaxSize(int zombieQueueMaxSize)
setZombieQueueMaxSize in interface IRemoteCacheAttributeszombieQueueMaxSize - The zombieQueueMaxSize to set.public int getZombieQueueMaxSize()
getZombieQueueMaxSize in interface IRemoteCacheAttributespublic String toString()
toString in class CommonRemoteCacheAttributesCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.