java.lang.Cloneable
public class CacheConnection
extends java.lang.Object
implements java.lang.Cloneable
Constructor | Description |
---|---|
CacheConnection(java.lang.String server) |
Initializes new instance of CacheConnection.
|
CacheConnection(java.lang.String server,
int port) |
Initializes new instance of CacheConnection.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getPort() |
Gets the port of server on which cache is running.
|
java.lang.String |
getServer() |
Gets the name of server on which cache is running.
|
Credentials |
getUserCredentials() |
Gets
Credentials of the cache for authorization. |
void |
setUserCredentials(Credentials value) |
Sets
Credentials of the cache for authorization. |
public CacheConnection(java.lang.String server, int port)
server
- Specifies the name of server on which cache is running.port
- Specifies the port of server on which cache is running.public CacheConnection(java.lang.String server)
server
- Specifies the name of server on which cache is running.public java.lang.String getServer()
public int getPort()
public Credentials getUserCredentials()
Credentials
of the cache for authorization.public void setUserCredentials(Credentials value)
Credentials
of the cache for authorization.value
- The credentials of the cache for authorization.