|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows for direct communication with a server using TCP/IP. This low-level
connection is encapsulated by the Channel
classes, such as
ClientChannel
.
The Channel
classes present a message-based interface to your
applications.
For Genesys internal use only.
Field Summary | |
static java.lang.String |
BIND_HOST_KEY
|
static java.lang.String |
BIND_PORT_KEY
|
Method Summary | |
void |
close()
Close connection to the server. |
void |
configure(ConnectionConfiguration config)
Configure or reconfigure this connection's additional parameters. |
void |
forceClose()
Close the connection without waiting for pending messages. |
ConnectionState |
getConnectionState()
Return connection state of this connection. |
java.lang.String |
getHost()
Get host of the connection. |
com.genesyslab.platform.commons.connection.interceptor.Interceptor |
getInterceptor()
Return interceptor of this connection. |
MessagePackager |
getMessagePackager()
|
MessageTransport |
getMessageTransport()
|
int |
getPort()
Get port of the connection. |
java.lang.String |
getUri()
Get address of the connection. |
void |
open()
Open network connection to the server. |
void |
setConnectionHandler(ConnectionHandler connectionHandler)
Set connection handler to receive notifications about connection events. |
void |
setInvoker(AsyncInvoker invoker)
Connection can use invoker (if it's set) to parse messages. |
void |
setMessagePackager(MessagePackager packager)
|
void |
setMessageTransport(MessageTransport transport)
|
Field Detail |
public static final java.lang.String BIND_HOST_KEY
public static final java.lang.String BIND_PORT_KEY
Method Detail |
public void open()
public void close()
public void forceClose()
public ConnectionState getConnectionState()
public java.lang.String getUri()
public java.lang.String getHost()
public int getPort()
public void setConnectionHandler(ConnectionHandler connectionHandler)
connectionHandler
- connection handler implemntationpublic void configure(ConnectionConfiguration config)
config
- Connection parameters.public com.genesyslab.platform.commons.connection.interceptor.Interceptor getInterceptor()
public void setMessagePackager(MessagePackager packager)
public MessagePackager getMessagePackager()
public void setMessageTransport(MessageTransport transport)
public MessageTransport getMessageTransport()
public void setInvoker(AsyncInvoker invoker)
invoker
- async invoker
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |