public class SocketClientInstance extends Object implements ChannelListener, ClientInstance
ChannelListener.ChannelListenerFactory| Constructor and Description |
|---|
SocketClientInstance(ObjectChannel objectSocket,
ClientServiceRegistryImpl csr,
boolean isClientEncryptionEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnected() |
void |
exceptionOccurred(Throwable t) |
Cryptor |
getCryptor() |
DQPWorkContext |
getWorkContext() |
void |
onConnection() |
void |
receivedMessage(Object msg) |
void |
send(Message message,
Serializable messageKey)
Send a message to this particular client using the asynch message key.
|
void |
shutdown()
Shutdown the server's connection to the client.
|
public SocketClientInstance(ObjectChannel objectSocket, ClientServiceRegistryImpl csr, boolean isClientEncryptionEnabled)
public void send(Message message, Serializable messageKey)
ClientInstancesend in interface ClientInstancemessage - The message to sendmessageKey - The key sent with the asynch querypublic Cryptor getCryptor()
getCryptor in interface ClientInstancepublic void exceptionOccurred(Throwable t)
exceptionOccurred in interface ChannelListenerpublic void onConnection()
throws CommunicationException
onConnection in interface ChannelListenerCommunicationExceptionpublic void disconnected()
disconnected in interface ChannelListenerpublic void receivedMessage(Object msg) throws CommunicationException
receivedMessage in interface ChannelListenerCommunicationExceptionpublic void shutdown()
throws CommunicationException
ClientInstanceshutdown in interface ClientInstanceCommunicationException - If an error occurs during the shutdownpublic DQPWorkContext getWorkContext()
getWorkContext in interface ClientInstanceCopyright © 2019. All rights reserved.