public class ConnectionBaseImpl extends ClientBaseConnection
connectCallbackHandlerconnectionInformation, executor, statistics| Constructor and Description |
|---|
ConnectionBaseImpl(ProtocolConfigurationFactory protocolConfigurationFactory,
ConnectionInformation connectionInformation) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleMessage(Object message)
Handle a message that came in by the current session.
|
protected Map<String,String> |
makeProperties() |
protected Request |
nextRequest() |
protected void |
onConnectionClosed()
Called when the connection got closed
|
protected void |
onConnectionConnected()
Called when the connection got connected
|
protected void |
processCallbackFuture(Request request,
Future<Callback[]> future,
Callback[] callbacks) |
protected Long |
registerCallbackHandler(Request request,
CallbackHandler callbackHandler) |
protected NotifyFuture<ResponseMessage> |
sendRequestMessage(RequestMessage requestMessage) |
void |
setCallbackFactory(CallbackFactory callbackFactory) |
addConnectionStateListener, addPrivilegeListener, connect, connect, disconnect, dispose, firePrivilegeChange, getPrivileges, getSession, getSslSession, getState, handleConnectComplete, isDisposed, messageReceived, onConnectionBound, performClosed, performDisconnected, performOpened, removeConnectionStateListener, removePrivilegeListener, sendMessage, sendMessageChecked, setState, switchStategetConnectionInformation, getSessionProperties, getStatistics, setSessionPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionInformation, getSessionPropertiespublic ConnectionBaseImpl(ProtocolConfigurationFactory protocolConfigurationFactory, ConnectionInformation connectionInformation) throws Exception
Exceptionpublic void setCallbackFactory(CallbackFactory callbackFactory)
setCallbackFactory in interface ConnectionsetCallbackFactory in class ClientBaseConnectionprotected void onConnectionConnected()
ClientBaseConnectionThis method is called while the connection lock is held.
The default implementation switches directly to
ConnectionState.BOUND
onConnectionConnected in class ClientBaseConnectionprotected void onConnectionClosed()
ClientBaseConnectionThis method is called while the connection lock is held.
The default implementation does nothing.
onConnectionClosed in class ClientBaseConnectionprotected void handleMessage(Object message)
ClientBaseConnectionNote that the method is called while holding the lock the connection itself.
handleMessage in class ClientBaseConnectionmessage - the received messageprotected void processCallbackFuture(Request request, Future<Callback[]> future, Callback[] callbacks)
protected Long registerCallbackHandler(Request request, CallbackHandler callbackHandler)
protected Request nextRequest()
protected NotifyFuture<ResponseMessage> sendRequestMessage(RequestMessage requestMessage)