|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.narayana.blacktie.jatmibroker.xatmi.impl.SessionImpl
public class SessionImpl
A session reference may either be obtained from the tpconnect
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()| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setCreatedState(long flags)
ACK that the client expects
in initialization of the connection.
flags -
public void close()
throws ConnectionException
ConnectionException
public int tpsend(Buffer toSend,
int flags)
throws ConnectionException
tpsend in interface SessiontoSend - The outbound dataflags - The flags to use
ConnectionException - 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 use
ConnectionException - If the message cannot be received or the flags are incorrect
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
public void tpdiscon()
throws ConnectionException
tpdiscon in interface SessionConnectionExceptionpublic org.jboss.narayana.blacktie.jatmibroker.core.transport.Sender getSender()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||