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)
ClientInstance
send
in interface ClientInstance
message
- The message to sendmessageKey
- The key sent with the asynch querypublic Cryptor getCryptor()
getCryptor
in interface ClientInstance
public void exceptionOccurred(Throwable t)
exceptionOccurred
in interface ChannelListener
public void onConnection() throws CommunicationException
onConnection
in interface ChannelListener
CommunicationException
public void disconnected()
disconnected
in interface ChannelListener
public void receivedMessage(Object msg) throws CommunicationException
receivedMessage
in interface ChannelListener
CommunicationException
public void shutdown() throws CommunicationException
ClientInstance
shutdown
in interface ClientInstance
CommunicationException
- If an error occurs during the shutdownpublic DQPWorkContext getWorkContext()
getWorkContext
in interface ClientInstance
Copyright © 2020. All rights reserved.