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 appication name.If different client applications are connected to server and because of any issue which results
in connection failure with server, after the client again establishes connection AppName is used
to identify these different client applications.
|
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 re-establish a broken connection between client and server.
|
TimeSpan |
getConnectionTimeout() |
Client's connection timeout specified in seconds.
|
java.lang.String |
getDefaultReadThruProvider() |
Gets the name of the default ReadThruProvider.
|
java.lang.String |
getDefaultWriteThruProvider() |
Gets the name of default WriteThruProvider.
|
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 EnabledKeepAlive is set '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.
|
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() |
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 appication name.If different client applications are connected to server and because of any issue which results
in connection failure with server, after the client again establishes connection AppName is used
to identify these different client applications.
|
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) |
Clients 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 re-establish a broken connection between client and server.
|
void |
setConnectionTimeout(TimeSpan value) |
Client's connection timeout specified in seconds.
|
void |
setDefaultReadThruProvider(java.lang.String value) |
Sets the name of the default ReadThruProvider.
|
void |
setDefaultWriteThruProvider(java.lang.String value) |
Sets the name of default WriteThruProvider.
|
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 EnabledKeepAlive is set '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 |
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) |
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) |
Gets
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's.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 ReadThruProvider.public java.lang.String getDefaultWriteThruProvider()
public void setDefaultWriteThruProvider(java.lang.String value)
value
- The name of default WriteThruProvider.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
- The application name.public java.lang.Boolean getLoadBalance()
public void setLoadBalance(java.lang.Boolean value)
value
- The boolean value indicating whether to set LoadBalancing true or false.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 keep alive interval 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