public class SessionImpl extends Object implements 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:
ConnectionImpl#tpconnect(String, BufferImpl, int, int)
TPSVCINFO_Impl#getSession()| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the session
|
org.jboss.narayana.blacktie.jatmibroker.core.transport.Sender |
getSender()
Get the sessions sender.
|
void |
setCreatedState(long flags)
Set the state of the session using the flags.
|
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
|
public void setCreatedState(long flags)
ACK that the client expects
in initialization of the connection.flags - public void close()
throws ConnectionException
ConnectionExceptionpublic int tpsend(Buffer toSend, int flags) throws ConnectionException
tpsend in interface SessiontoSend - The outbound dataflags - The flags to useConnectionException - If the message cannot be sent.public Buffer tprecv(int flags) throws ConnectionException, org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
tprecv in interface Sessionflags - The flags to useConnectionException - If the message cannot be received or the flags are incorrectorg.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationExceptionpublic void tpdiscon()
throws ConnectionException
tpdiscon in interface SessionConnectionExceptionpublic org.jboss.narayana.blacktie.jatmibroker.core.transport.Sender getSender()
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.