Connection
, com.genesyslab.platform.commons.connection.impl.ConnectionImpl
public class UdpConnectionImpl extends com.genesyslab.platform.commons.connection.impl.AbstractConnectionImpl implements Connection, com.genesyslab.platform.commons.connection.impl.ConnectionImpl
Modifier and Type | Class | Description |
---|---|---|
static class |
UdpConnectionImpl.BufferWritePoint |
_syncConfig, address, connHandler, host, port
config, defaultConnectionProxy, defaultConnectionProxyPass, defaultConnectionProxyPort, defaultConnectionProxyType, defaultConnectionProxyUser, ENV_PSDK_PROXY_HOST_KEY, ENV_PSDK_PROXY_PASS_KEY, ENV_PSDK_PROXY_PORT_KEY, ENV_PSDK_PROXY_TYPE_KEY, ENV_PSDK_PROXY_USER_KEY
BACKLOG, BACKUP_BIND_PORT_KEY, BIND_HOST_KEY, BIND_PORT_KEY, CONN_PROXY_HOST_KEY, CONN_PROXY_PASS_KEY, CONN_PROXY_PORT_KEY, CONN_PROXY_TYPE_HTTP, CONN_PROXY_TYPE_KEY, CONN_PROXY_TYPE_SOCKS4, CONN_PROXY_TYPE_SOCKS5, CONN_PROXY_USER_KEY, CONNECTION_TIMEOUT_KEY, DEFAULT_ENABLE_IPV6, DEFAULT_IP_VERSION, DEFAULT_OPERATION_TIMEOUT, ENABLE_IPV6_KEY, IP_VERSION_4_6, IP_VERSION_6_4, IP_VERSION_KEY, KEEP_ALIVE_KEY, LAZY_PARSING_ENABLED_KEY, OPERATION_TIMEOUT_KEY, REUSE_ADDRESS_KEY, SSL_KEYSTORE_PASS, SSL_KEYSTORE_PATH_KEY, STR_ATTR_ENCODING_NAME_KEY, TLS_KEY, TLS_VERSION_KEY
Constructor | Description |
---|---|
UdpConnectionImpl() |
Modifier and Type | Method | Description |
---|---|---|
void |
attach(java.nio.channels.DatagramChannel channel) |
|
protected void |
doClose(java.lang.Throwable closeReason) |
Perform close operation itself.
|
java.nio.channels.DatagramChannel |
getChannel() |
|
java.net.InetSocketAddress |
getLocalEndPoint() |
Gets current local
InetSocketAddress of socket, if it is created. |
java.net.InetSocketAddress |
getRemoteEndPoint() |
Gets current remote
InetSocketAddress of socket, if it is created. |
java.lang.String |
getUri() |
Gets address of the connection.
|
com.genesyslab.platform.commons.connection.impl.WritePipe |
getWritePipe() |
|
boolean |
hasUnsetBytes() |
Checks if some unsent bytes have been ramained.
|
void |
open() |
Opens network connection to the server.
|
void |
setUri(java.lang.String host,
int port) |
|
protected void |
startClose(java.lang.Throwable closeReason) |
Perform "before close" cleanup.
|
close, close, context, forceClose, forceClose, getClosedCause, getConnection, getConnectionState, getExecutor, getHost, getId, getLocalBindHost, getLocalBindPort, getPort, getStringAttributesEncoding, getUnsetBytes, isForceClosing, notifyCloseHandler, notifyEstablishedHandler, registerConfigurationHandlers, setCloseCause, setConnectionHandler, setConnectionState, setContext, setExecutor, setLocalBindHost, setLocalBindPort, setTimer, setUri, toString, unregisterConfigurationHandlers
bytesToHexDump, configure, getConfigLocalEndpoint, getConfigTimeout, getConfigTimeout, getConnectionHandler, getInterceptor, getInvoker, getMessagePackager, getMessageTransport, getProtocol, getTimer, getUsedLocalBindPort, initProtocol, isServerConnection, reconfigProtocol, setInvoker, setMessagePackager, setMessageTransport, setServerConnection, setStringAttributesEncoding
close, configure, forceClose, getClosedCause, getConnectionState, getHost, getId, getInterceptor, getLocalBindHost, getLocalBindPort, getMessagePackager, getMessageTransport, getPort, getUnsetBytes, setConnectionHandler, setContext, setInvoker, setLocalBindHost, setLocalBindPort, setMessagePackager, setMessageTransport, setTimer
public void open()
Connection
open
in interface Connection
open
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public void attach(java.nio.channels.DatagramChannel channel) throws java.io.IOException
java.io.IOException
public java.lang.String getUri()
Connection
getUri
in interface Connection
getUri
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public void setUri(java.lang.String host, int port)
setUri
in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl
setUri
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
public com.genesyslab.platform.commons.connection.impl.WritePipe getWritePipe()
getWritePipe
in interface com.genesyslab.platform.commons.connection.impl.ConnectionImpl
public java.nio.channels.DatagramChannel getChannel()
protected void startClose(java.lang.Throwable closeReason)
com.genesyslab.platform.commons.connection.impl.AbstractConnection
startClose
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
closeReason
- Reason to close connectionprotected void doClose(java.lang.Throwable closeReason)
com.genesyslab.platform.commons.connection.impl.AbstractConnection
doClose
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
closeReason
- Reason to close connectionpublic java.net.InetSocketAddress getRemoteEndPoint()
InetSocketAddress
of socket, if it is created.getRemoteEndPoint
in interface Connection
public java.net.InetSocketAddress getLocalEndPoint()
InetSocketAddress
of socket, if it is created.getLocalEndPoint
in interface Connection
public boolean hasUnsetBytes()
com.genesyslab.platform.commons.connection.impl.AbstractConnection
hasUnsetBytes
in interface Connection
hasUnsetBytes
in class com.genesyslab.platform.commons.connection.impl.AbstractConnection
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.