public interface Session
Connection invocation for a client or retrieved from the
TPSVCINFO structure for a service (assuming the service was invoked within
the scope of a tpconnect).
It is used to send and retrieve data:
Connection#tpconnect(String, Buffer, int, int) TPSVCINFO#getSession()| Modifier and Type | Method and Description |
|---|---|
void |
tpdiscon()
Close the conversation with the remote service.
|
Buffer |
tprecv(int flags)
Received the next response in a conversation
|
int |
tpsend(Buffer toSend,
int flags)
Send a buffer to a remote server in a conversation
|
int tpsend(Buffer toSend, int flags) throws ConnectionException
toSend - The outbound dataflags - The flags to useConnectionException - If the message cannot be sent.Buffer tprecv(int flags) throws ConnectionException, org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
flags - The flags to useConnectionException - If the message cannot be received or the flags are incorrectorg.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationExceptionvoid tpdiscon()
throws ConnectionException
ConnectionExceptionCopyright © 2016 JBoss by Red Hat. All Rights Reserved.