public class RemoteCacheAttributes extends CommonRemoteCacheAttributes implements IRemoteCacheAttributes
DEFAULT_RECEIVE, DEFAULT_ZOMBIE_QUEUE_MAX_SIZE
DEFAULT_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, setRmiSocketFactoryTimeoutMillis
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public RemoteCacheAttributes()
public int getFailoverIndex()
getFailoverIndex
in interface IRemoteCacheAttributes
public void setFailoverIndex(int p)
setFailoverIndex
in interface IRemoteCacheAttributes
p
- The new failoverIndex valuepublic List<RemoteLocation> getFailovers()
getFailovers
in interface IRemoteCacheAttributes
public void setFailovers(List<RemoteLocation> failovers)
setFailovers
in interface IRemoteCacheAttributes
failovers
- The new failovers valuepublic String getFailoverServers()
getFailoverServers
in interface IRemoteCacheAttributes
public void setFailoverServers(String s)
setFailoverServers
in interface IRemoteCacheAttributes
s
- The new failoverServers valuepublic int getLocalPort()
getLocalPort
in interface IRemoteCacheAttributes
public void setLocalPort(int p)
setLocalPort
in interface IRemoteCacheAttributes
p
- The new localPort valuepublic String getThreadPoolName()
IRemoteCacheAttributes
The default name is "remote_cache_client"
getThreadPoolName
in interface IRemoteCacheAttributes
public void setThreadPoolName(String name)
IRemoteCacheAttributes
setThreadPoolName
in interface IRemoteCacheAttributes
name
- public int getGetTimeoutMillis()
IRemoteCacheAttributes
getGetTimeoutMillis
in interface IRemoteCacheAttributes
public void setGetTimeoutMillis(int millis)
IRemoteCacheAttributes
setGetTimeoutMillis
in interface IRemoteCacheAttributes
millis
- public void setReceive(boolean receive)
setReceive
in interface IRemoteCacheAttributes
receive
- 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 IRemoteCacheAttributes
public void setZombieQueueMaxSize(int zombieQueueMaxSize)
setZombieQueueMaxSize
in interface IRemoteCacheAttributes
zombieQueueMaxSize
- The zombieQueueMaxSize to set.public int getZombieQueueMaxSize()
getZombieQueueMaxSize
in interface IRemoteCacheAttributes
public String toString()
toString
in class CommonRemoteCacheAttributes
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.