public class CacheConnectionOptions
extends java.lang.Object
Constructor | Description |
---|---|
CacheConnectionOptions() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Creates a new object that is a copy of the current instance.
|
java.lang.String |
getAppName() |
Gets the application name.
|
java.lang.String |
getClientBindIP() |
Gets the IP for the client to be binded with.
|
ClientCacheSyncMode |
getClientCacheMode() |
Gets
ClientCacheSyncMode to specify how the client cache is synchronized with the cluster caches through events. |
TimeSpan |
getClientRequestTimeOut() |
Clients operation timeout specified in seconds.
|
java.lang.Integer |
getCommandRetries() |
If client application sends request to server for any operation and a response is not received,
then the number of retries it will make until it gets response is defined here.
|
TimeSpan |
getCommandRetryInterval() |
In case if client app doesn’t get response against some operation call on server, the command retry
interval defines the waiting period before the next attempt to send the operation the server is made.
|
java.lang.Integer |
getConnectionRetries() |
Number of tries to reestablish a broken connection between a client and server.
|
TimeSpan |
getConnectionTimeout() |
Client's connection timeout specified in seconds.
|
java.lang.String |
getDefaultReadThruProvider() |
Gets the name of the default value of the Read-Through Provider.
|
java.lang.String |
getDefaultWriteThruProvider() |
Gets the name of the default value of the Write-Through Provider.
|
java.lang.Boolean |
getEnableClientLogs() |
Gets the flag that specifies whether to create client logs or not.
|
java.lang.Boolean |
getEnableKeepAlive() |
Gets the keep alive flag.
|
IsolationLevel |
getIsolationMode() |
Gets the Isolation Level of the cache.
|
TimeSpan |
getKeepAliveInterval() |
Gets the KeepAliveInterval, which will be in effect if the EnableKeepAlive is set to true
or is specified true from the client configuration.
|
java.lang.Boolean |
getLoadBalance() |
When this flag is set, client tries to connect to the optimum server in terms of number of connected clients.
|
Integer |
getLoadBalancerConnectionRetries​() |
Gets the number of times the load balancer will be prompted to forward the connection to the right machine.
|
LogLevel |
getLogLevel() |
Gets the
LogLevel either as Info, Error or Debug. |
TimeSpan |
getRetryConnectionDelay() |
The time after which client will try to reconnect to the server.
|
TimeSpan |
getRetryInterval() |
The time, in seconds, to wait between two connection retries.
|
java.util.List<ServerInfo> |
getServerList() |
Gets the list of
ServerInfo in the cache. |
Credentials |
getUserCredentials() |
Gets
Credentials for the authentication of connection with the cache. |
void |
setAppName(java.lang.String value) |
Sets the application name.
|
void |
setClientBindIP(java.lang.String value) |
Sets the IP for the client to be binded with.
|
void |
setClientCacheMode(ClientCacheSyncMode value) |
Sets
ClientCacheSyncMode to specify how the client cache is synchronized with the cluster caches through events. |
void |
setClientRequestTimeOut(TimeSpan value) |
Client operation timeout specified in seconds.
|
void |
setCommandRetries(java.lang.Integer value) |
If client application sends request to server for any operation and a response is not received,
then the number of retries it will make until it gets response is defined here.
|
void |
setCommandRetryInterval(TimeSpan value) |
In case if client app doesn’t get response against some operation call on server, the command retry
interval defines the waiting period before the next attempt to send the operation the server is made.
|
void |
setConnectionRetries(java.lang.Integer value) |
Number of tries to reestablish a broken connection between client and a server.
|
void |
setConnectionTimeout(TimeSpan value) |
Client's connection timeout specified in seconds.
|
void |
setDefaultReadThruProvider(java.lang.String value) |
Sets the name of the default value of the Read-Through Provider.
|
void |
setDefaultWriteThruProvider(java.lang.String value) |
Sets the name of default value of the Write-Through Provider.
|
void |
setEnableClientLogs(java.lang.Boolean value) |
Sets the flag that specifies whether to create client logs or not.
|
void |
setEnableKeepAlive(java.lang.Boolean value) |
Sets the keep alive flag.
|
void |
setIsolationLevel(IsolationLevel value) |
Sets the Isolation Level of the cache.
|
void |
setKeepAliveInterval(TimeSpan value) |
Sets the KeepAliveInterval, which will be in effect if the EnableKeepAlive is set to true
or is specified true from the client configuration.
|
void |
setLoadBalance(java.lang.Boolean value) |
When this flag is set, client tries to connect to the optimum server in terms of number of connected clients.
|
void |
setLoadBalancerConnectionRetries​(int value) |
Set the number of times the load balancer will be prompted to forward the connection to the right machine.
|
void |
setLogLevel(LogLevel value) |
Sets the
LogLevel either as Info, Error or Debug. |
void |
setRetryConnectionDelay(TimeSpan value) |
The time after which client will try to reconnect to the server.
|
void |
setRetryInterval(TimeSpan value) |
The time, in seconds, to wait between two connection retries.
|
void |
setServerList(java.util.List<ServerInfo> value) |
Sets the list of
ServerInfo in the cache. |
void |
setUserCredentials(Credentials value) |
Sets
Credentials for the authentication of connection with the cache. |
public java.util.List<ServerInfo> getServerList()
ServerInfo
in the cache.public void setServerList(java.util.List<ServerInfo> value)
ServerInfo
in the cache.value
- The list of server info.public IsolationLevel getIsolationMode()
public void setIsolationLevel(IsolationLevel value)
value
- The Isolation Level of the cache.public java.lang.String getDefaultReadThruProvider()
public void setDefaultReadThruProvider(java.lang.String value)
value
- The name of the default value of the Read-Through Provider.public java.lang.String getDefaultWriteThruProvider()
public void setDefaultWriteThruProvider(java.lang.String value)
value
- The name of default value of the Write-Through Provider.public java.lang.String getClientBindIP()
public void setClientBindIP(java.lang.String value)
value
- The IP for the client to be binded with.public java.lang.String getAppName()
public void setAppName(java.lang.String value)
value
- Name of the client application.public java.lang.Boolean getLoadBalance()
public void setLoadBalance(java.lang.Boolean value)
value
- The boolean value indicating whether to set load balance as true or false.public void LoadBalancerConnectionRetries​(java.lang.Integer value)
value
- The load balancer connection retries count.public void LoadBalancerConnectionRetries​(java.lang.Integer value)
value
- The load balancer connection retries count.public TimeSpan getClientRequestTimeOut()
public void setClientRequestTimeOut(TimeSpan value)
value
- The request timeout to be associated with connection options.public TimeSpan getConnectionTimeout()
TimeSpan
.public void setConnectionTimeout(TimeSpan value)
value
- The client connecton timeout in form of a TimeSpan
.public java.lang.Integer getConnectionRetries()
public void setConnectionRetries(java.lang.Integer value)
value
- An integer indicating the number of retries.public TimeSpan getRetryInterval()
TimeSpan
.public void setRetryInterval(TimeSpan value)
value
- The retry interval in form of TimeSpan
.public TimeSpan getRetryConnectionDelay()
TimeSpan
.public void setRetryConnectionDelay(TimeSpan value)
value
- The retry connection delay in form of TimeSpan
.public ClientCacheSyncMode getClientCacheMode()
ClientCacheSyncMode
to specify how the client cache is synchronized with the cluster caches through events.public void setClientCacheMode(ClientCacheSyncMode value)
ClientCacheSyncMode
to specify how the client cache is synchronized with the cluster caches through events.value
- The client cache sync mode to be associated with connection options.public java.lang.Integer getCommandRetries()
public void setCommandRetries(java.lang.Integer value)
value
- An integer indicating the number of command retries.public TimeSpan getCommandRetryInterval()
TimeSpan
.public void setCommandRetryInterval(TimeSpan value)
value
- The command retry interval in form of TimeSpan
.public java.lang.Boolean getEnableKeepAlive()
public void setEnableKeepAlive(java.lang.Boolean value)
value
- A boolean value that specifies whether to enable keep alive or not.public TimeSpan getKeepAliveInterval()
TimeSpan
.public void setKeepAliveInterval(TimeSpan value)
value
- The KeepAliveInterval in form of TimeSpan
.public Credentials getUserCredentials()
Credentials
for the authentication of connection with the cache.
This information is required when the security is enabled.public void setUserCredentials(Credentials value)
Credentials
for the authentication of connection with the cache.
This information is required when the security is enabled.value
- The credentials for the authentication of cache connection.public LogLevel getLogLevel()
LogLevel
either as Info, Error or Debug.public void setLogLevel(LogLevel value)
LogLevel
either as Info, Error or Debug.value
- The log level to be associated with connection options.public java.lang.Boolean getEnableClientLogs()
public void setEnableClientLogs(java.lang.Boolean value)
value
- The boolean value that specifies whether client logs are enabled or not.public java.lang.Object clone()
clone
in class java.lang.Object