Package org.teiid.transport
Interface ClientInstance
-
- All Known Implementing Classes:
SocketClientInstance
public interface ClientInstance
Represents a ClientConnection from the server's point of view. This interface can be used by a ServerListener implementation to manage the incoming client connections, retrieve information about a particular connection, and send a message to a particular connection in the asynchronous message scenario.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cryptor
getCryptor()
DQPWorkContext
getWorkContext()
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.
-
-
-
Method Detail
-
send
void send(Message message, Serializable messageKey)
Send a message to this particular client using the asynch message key.- Parameters:
message
- The message to sendmessageKey
- The key sent with the asynch query
-
shutdown
void shutdown() throws CommunicationException
Shutdown the server's connection to the client.- Throws:
CommunicationException
- If an error occurs during the shutdown
-
getCryptor
Cryptor getCryptor()
-
getWorkContext
DQPWorkContext getWorkContext()
-
-