public class SocketClientInstance extends Object implements ChannelListener, ClientInstance
ChannelListener.ChannelListenerFactory| Constructor and Description |
|---|
SocketClientInstance(org.teiid.net.socket.ObjectChannel objectSocket,
ClientServiceRegistryImpl csr,
boolean isClientEncryptionEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnected() |
void |
exceptionOccurred(Throwable t) |
Cryptor |
getCryptor() |
org.teiid.dqp.internal.process.DQPWorkContext |
getWorkContext() |
void |
onConnection() |
void |
receivedMessage(Object msg) |
void |
send(org.teiid.net.socket.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(org.teiid.net.socket.ObjectChannel objectSocket,
ClientServiceRegistryImpl csr,
boolean isClientEncryptionEnabled)
public void send(org.teiid.net.socket.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 org.teiid.net.CommunicationException
onConnection in interface ChannelListenerorg.teiid.net.CommunicationExceptionpublic void disconnected()
disconnected in interface ChannelListenerpublic void receivedMessage(Object msg) throws org.teiid.net.CommunicationException
receivedMessage in interface ChannelListenerorg.teiid.net.CommunicationExceptionpublic void shutdown()
throws org.teiid.net.CommunicationException
ClientInstanceshutdown in interface ClientInstanceorg.teiid.net.CommunicationException - If an error occurs during the shutdownpublic org.teiid.dqp.internal.process.DQPWorkContext getWorkContext()
getWorkContext in interface ClientInstanceCopyright © 2018 JBoss by Red Hat. All rights reserved.