
Public Methods | |
| void | prepare (Marshaller m) throws JonathanException |
| boolean | direct () |
| ReplyInterface | prepareInvocation (Marshaller m) throws JonathanException |
| void | send (Marshaller m) throws JonathanException |
| void | close () |
Session_High is the type of sessions used to send messages down to the network; A Session_High is usually a surrogate for a session of type Session_Low exported to a protocol and represented by an identifier.
Sessions represent handles on particular communication channels: A session object is dynamically created by a protocol, and lets messages be sent and received through the communication channel it represents, using that protocol. Sessions have higher and lower interfaces, respectively used to send messages down and up a protocol stack.
Usually, a Session_High instance is obtained using the bind operation on a session identifier representing a Session_Low interface: it is thus a surrogate, or a proxy, for that interface.
Definition at line 50 of file Session_High.java.
|
|
Closes the session, letting the associated resources be released or reused. Sessions may have an exclusive access to a communication resource. It is thus very important to ensure that they are properly closed if they are no longer in use. Reimplemented in MulticastIpProtocol::MulticastIpSession, RTPProtocol::RTPCoder, TcpIpProtocol::SrvSession, and TcpIpProtocol::CltSession. Referenced by RTPProtocol::RTPCoder::close(), GIOPProtocol::GIOPSession_High::close(), JStubFactory::ClientDelegate::finalize(), GIOPProtocol::ServerSession_Low::send(), EventChannelFactory::ConsumerDelegate::send(), GIOPProtocol::sendError(), and GIOPProtocol::ServerSession_Low::sendSystemException(). |
|
|
Return false if the prepare or prepareInvocation must be used, true otherwise.
A true return means that the target protocols headers are added when the message is sent, and not before. Invoking one of the
Reimplemented in MulticastIpProtocol::MulticastIpSession, RTPProtocol::RTPCoder, and TcpIpProtocol::Session. Referenced by GIOPProtocol::sendMessage(). |
|
|
Lets the target session write its own headers into the provided message (one-way case).
Protocols usually need to add headers in the front of messages before sending them down the net. It may be much more efficient to add these headers before the actual message is written. The
The
Reimplemented in GIOPProtocol::ClientSession_High, MulticastIpProtocol::MulticastIpSession, RTPProtocol::RTPCoder, and TcpIpProtocol::Session. Referenced by OneWayRefImpl::invoke(), JStubFactory::ClientDelegate::request(), GIOPProtocol::sendError(), and GIOPProtocol::sendMessage(). |
|
|
Reimplemented in GIOPProtocol::ClientSession_High, MulticastIpProtocol::MulticastIpSession, RTPProtocol::RTPCoder, and TcpIpProtocol::Session. Referenced by JStubFactory::ClientDelegate::request(). |
|
|
Sends the message down the protocol stack. The sent message must have been prepared first, unless a call to direct returns true. It is the responsibility of the recipient of the message to close it.
Reimplemented in MulticastIpProtocol::MulticastIpSession, RTPProtocol::RTPCoder, TcpIpProtocol::SrvSession, and TcpIpProtocol::CltSession. Referenced by JStubFactory::ClientDelegate::invoke(), OneWayRefImpl::invoke(), RTPProtocol::RTPCoder::send(), GIOPProtocol::sendError(), and GIOPProtocol::sendMessage(). |
1.2.6 written by Dimitri van Heesch,
© 1997-2001