public class RemoteCacheContainer<T extends RemoteCacheContainer<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RemoteCacheContainer.ProtocolVersion |
static class |
RemoteCacheContainer.RemoteCacheContainerResources
Child mutators for RemoteCacheContainer
|
Constructor and Description |
---|
RemoteCacheContainer(String key) |
Modifier and Type | Method and Description |
---|---|
Integer |
activeConnections()
The number of active connections to the Infinispan server.
|
T |
activeConnections(Integer value)
The number of active connections to the Infinispan server.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
T |
asyncThreadPool()
Defines a thread pool used for asynchronous operations.
|
T |
asyncThreadPool(AsyncThreadPool value)
Defines a thread pool used for asynchronous operations.
|
T |
asyncThreadPool(AsyncThreadPoolConsumer consumer)
Defines a thread pool used for asynchronous operations.
|
T |
asyncThreadPool(AsyncThreadPoolSupplier supplier)
Defines a thread pool used for asynchronous operations.
|
T |
connectionPoolComponent()
Configuration of the connection pool.
|
T |
connectionPoolComponent(ConnectionPoolComponent value)
Configuration of the connection pool.
|
T |
connectionPoolComponent(ConnectionPoolComponentConsumer consumer)
Configuration of the connection pool.
|
T |
connectionPoolComponent(ConnectionPoolComponentSupplier supplier)
Configuration of the connection pool.
|
Integer |
connections()
The total number of connections to the Infinispan server.
|
T |
connections(Integer value)
The total number of connections to the Infinispan server.
|
Integer |
connectionTimeout()
Defines the maximum socket connect timeout before giving up connecting to
the server.
|
T |
connectionTimeout(Integer value)
Defines the maximum socket connect timeout before giving up connecting to
the server.
|
String |
defaultRemoteCluster()
Required default remote server cluster.
|
T |
defaultRemoteCluster(String value)
Required default remote server cluster.
|
String |
getKey() |
Integer |
idleConnections()
The number of idle connections to the Infinispan server.
|
T |
idleConnections(Integer value)
The number of idle connections to the Infinispan server.
|
T |
invalidationNearCache()
Configures using near cache in invalidated mode.
|
T |
invalidationNearCache(InvalidationNearCache value)
Configures using near cache in invalidated mode.
|
T |
invalidationNearCache(InvalidationNearCacheConsumer consumer)
Configures using near cache in invalidated mode.
|
T |
invalidationNearCache(InvalidationNearCacheSupplier supplier)
Configures using near cache in invalidated mode.
|
Integer |
keySizeEstimate()
This hint allows sizing of byte buffers when serializing and
deserializing keys, to minimize array resizing.
|
T |
keySizeEstimate(Integer value)
This hint allows sizing of byte buffers when serializing and
deserializing keys, to minimize array resizing.
|
Integer |
maxRetries()
Sets the maximum number of retries for each request.
|
T |
maxRetries(Integer value)
Sets the maximum number of retries for each request.
|
String |
module()
Defines the module whose class loader should be used when configuring
remote cache container marshaller.
|
T |
module(String value)
Defines the module whose class loader should be used when configuring
remote cache container marshaller.
|
T |
noneNearCache()
Disables near cache.
|
T |
noneNearCache(NoneNearCache value)
Disables near cache.
|
T |
noneNearCache(NoneNearCacheConsumer consumer)
Disables near cache.
|
T |
noneNearCache(NoneNearCacheSupplier supplier)
Disables near cache.
|
RemoteCacheContainer.ProtocolVersion |
protocolVersion()
This property defines the protocol version that this client should use.
|
T |
protocolVersion(RemoteCacheContainer.ProtocolVersion value)
This property defines the protocol version that this client should use.
|
T |
remoteCache(RemoteCache value)
Add the RemoteCache object to the list of subresources
|
T |
remoteCache(RemoteCacheSupplier supplier)
Install a supplied RemoteCache object to the list of subresources
|
T |
remoteCache(String childKey)
Create and configure a RemoteCache object to the list of subresources
|
T |
remoteCache(String childKey,
RemoteCacheConsumer consumer)
Create and configure a RemoteCache object to the list of subresources
|
T |
remoteCaches(List<RemoteCache> value)
Add all RemoteCache objects to this subresource
|
T |
remoteCluster(RemoteCluster value)
Add the RemoteCluster object to the list of subresources
|
T |
remoteCluster(RemoteClusterSupplier supplier)
Install a supplied RemoteCluster object to the list of subresources
|
T |
remoteCluster(String childKey)
Create and configure a RemoteCluster object to the list of subresources
|
T |
remoteCluster(String childKey,
RemoteClusterConsumer consumer)
Create and configure a RemoteCluster object to the list of subresources
|
T |
remoteClusters(List<RemoteCluster> value)
Add all RemoteCluster objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
T |
securityComponent()
Security configuration.
|
T |
securityComponent(SecurityComponent value)
Security configuration.
|
T |
securityComponent(SecurityComponentConsumer consumer)
Security configuration.
|
T |
securityComponent(SecurityComponentSupplier supplier)
Security configuration.
|
Integer |
socketTimeout()
Enable or disable SO_TIMEOUT on socket connections to remote Hot Rod
servers with the specified timeout, in milliseconds.
|
T |
socketTimeout(Integer value)
Enable or disable SO_TIMEOUT on socket connections to remote Hot Rod
servers with the specified timeout, in milliseconds.
|
Boolean |
statisticsEnabled()
Enables statistics gathering for this remote cache.
|
T |
statisticsEnabled(Boolean value)
Enables statistics gathering for this remote cache.
|
RemoteCacheContainer.RemoteCacheContainerResources |
subresources() |
Boolean |
tcpKeepAlive()
Configures TCP Keepalive on the TCP stack.
|
T |
tcpKeepAlive(Boolean value)
Configures TCP Keepalive on the TCP stack.
|
Boolean |
tcpNoDelay()
Enable or disable TCP_NODELAY on socket connections to remote Hot Rod
servers.
|
T |
tcpNoDelay(Boolean value)
Enable or disable TCP_NODELAY on socket connections to remote Hot Rod
servers.
|
T |
transactionComponent()
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponent value)
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponentConsumer consumer)
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponentSupplier supplier)
The cache transaction configuration.
|
Integer |
valueSizeEstimate()
This hint allows sizing of byte buffers when serializing and
deserializing values, to minimize array resizing.
|
T |
valueSizeEstimate(Integer value)
This hint allows sizing of byte buffers when serializing and
deserializing values, to minimize array resizing.
|
public RemoteCacheContainer(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public RemoteCacheContainer.RemoteCacheContainerResources subresources()
public T remoteCaches(List<RemoteCache> value)
value
- List of RemoteCache objects.public T remoteCache(RemoteCache value)
value
- The RemoteCache to addpublic T remoteCache(String childKey, RemoteCacheConsumer consumer)
key
- The key for the RemoteCache resourceconfig
- The RemoteCacheConsumer to usepublic T remoteCache(String childKey)
key
- The key for the RemoteCache resourcepublic T remoteCache(RemoteCacheSupplier supplier)
public T remoteClusters(List<RemoteCluster> value)
value
- List of RemoteCluster objects.public T remoteCluster(RemoteCluster value)
value
- The RemoteCluster to addpublic T remoteCluster(String childKey, RemoteClusterConsumer consumer)
key
- The key for the RemoteCluster resourceconfig
- The RemoteClusterConsumer to usepublic T remoteCluster(String childKey)
key
- The key for the RemoteCluster resourcepublic T remoteCluster(RemoteClusterSupplier supplier)
public T securityComponent(SecurityComponent value)
public T securityComponent(SecurityComponentConsumer consumer)
public T securityComponent()
public T securityComponent(SecurityComponentSupplier supplier)
public T transactionComponent(TransactionComponent value)
public T transactionComponent(TransactionComponentConsumer consumer)
public T transactionComponent()
public T transactionComponent(TransactionComponentSupplier supplier)
public T asyncThreadPool(AsyncThreadPool value)
public T asyncThreadPool(AsyncThreadPoolConsumer consumer)
public T asyncThreadPool()
public T asyncThreadPool(AsyncThreadPoolSupplier supplier)
public T connectionPoolComponent(ConnectionPoolComponent value)
public T connectionPoolComponent(ConnectionPoolComponentConsumer consumer)
public T connectionPoolComponent()
public T connectionPoolComponent(ConnectionPoolComponentSupplier supplier)
public T noneNearCache(NoneNearCache value)
public T noneNearCache(NoneNearCacheConsumer consumer)
public T noneNearCache()
public T noneNearCache(NoneNearCacheSupplier supplier)
public T invalidationNearCache(InvalidationNearCache value)
public T invalidationNearCache(InvalidationNearCacheConsumer consumer)
public T invalidationNearCache()
public T invalidationNearCache(InvalidationNearCacheSupplier supplier)
public Integer activeConnections()
public T activeConnections(Integer value)
public Integer connectionTimeout()
public T connectionTimeout(Integer value)
public Integer connections()
public T connections(Integer value)
public String defaultRemoteCluster()
public T defaultRemoteCluster(String value)
public Integer idleConnections()
public T idleConnections(Integer value)
public Integer keySizeEstimate()
public T keySizeEstimate(Integer value)
public Integer maxRetries()
public T maxRetries(Integer value)
public String module()
public T module(String value)
public RemoteCacheContainer.ProtocolVersion protocolVersion()
public T protocolVersion(RemoteCacheContainer.ProtocolVersion value)
public Integer socketTimeout()
public T socketTimeout(Integer value)
public Boolean statisticsEnabled()
public T statisticsEnabled(Boolean value)
public Boolean tcpKeepAlive()
public Boolean tcpNoDelay()
public T tcpNoDelay(Boolean value)
public Integer valueSizeEstimate()
Copyright © 2020 JBoss by Red Hat. All rights reserved.