public interface ConnectionSpec
Factory#newConnection(ConnectionSpec)
,
java.resource.cci.ConnectionSpec
Modifier and Type | Interface and Description |
---|---|
static class |
ConnectionSpec.RefImpl
Reference implementation of
ConnectionSpec . |
InetAddress getAddress()
ConnectionSpec setAddress(InetAddress address)
address
- ConnectionSpec
int getPort()
ConnectionSpec setPort(int port)
port
- ConnectionSpec
byte[] getCredentials()
Command#AUTH
ConnectionSpec setCredentials(byte[] credentials)
credentials
- ConnectionSpec
setCredentials(String)
ConnectionSpec setCredentials(String credentials)
credentials
- ConnectionSpec
setCredentials(byte[])
int getDatabase()
Command#SELECT
ConnectionSpec setDatabase(int database)
database
- ConnectionSpec
Connection.Modality getModality()
Connection.Modality
of this protocol handler.ConnectionSpec setModality(Connection.Modality modality)
modality
- ConnectionSpec
boolean getSocketFlag(Connection.Socket.Flag flag)
SocketFlag
for the ConnectionSpec
flag
- SocketFlag
ConnectionSpec setSocketFlag(Connection.Socket.Flag flag, Boolean value)
Connection.Socket.Flag
for the ConnectionSpec
flag
- value
- ConnectionSpec
thisInteger getSocketProperty(Connection.Socket.Property property)
Connection.Socket.Property
for the ConnectionSpec
property
- SocketFlag
ConnectionSpec setSocketProperty(Connection.Socket.Property property, Integer value)
SocketProperty
for the ConnectionSpec
property
- value
- Map.put(Object, Object)
semantics.boolean getConnectionFlag(Connection.Flag flag)
flag
- Connection.Flag
SocketFlag
ConnectionSpec setConnectionFlag(Connection.Flag flag, Boolean value)
Connection.Flag
flag
- value
- ConnectionSpec
Object getConnectionProperty(Connection.Property prop)
T
- proptype
- ConnectionSpec setConnectionProperty(Connection.Property prop, Object value)
T
- property
- value
- int getReconnectCnt()
ConnectionSpec setReconnectCnt(int cnt)
cnt
- ConnectionSpec
int getMaxConnectWait()
ConnectionSpec setMaxConnectWait(int cnt)
cnt
- ConnectionSpec
int getHeartbeat()
ConnectionSpec setHeartbeat(int seconds)
seconds
- heartbeat periodConnectionSpec
Copyright © 2009–2018. All rights reserved.