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()| 限定符和类型 | 方法和说明 |
|---|---|
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
public int tpsend(Buffer toSend, int flags) throws ConnectionException
tpsend 在接口中 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 在接口中 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 在接口中 SessionConnectionExceptionpublic org.jboss.narayana.blacktie.jatmibroker.core.transport.Sender getSender()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.