org.openorb.orb.net
Interface ServerChannel

All Superinterfaces:
Channel
All Known Implementing Classes:
IIOPServerChannel

public interface ServerChannel
extends Channel

A server channel represents a connection with a client through which requests can be issued.

Version:
$Revision: 1.4 $ $Date: 2004/07/22 12:25:45 $
Author:
Chris Wood

Field Summary
static int STATE_CLOSED
          Connection closed perminently.
static int STATE_CONNECTED
          Connection open and ready for use.
 
Method Summary
 void close()
          Close the connection.
 org.omg.CORBA.ORB orb()
          An orb reference.
 void soft_close(boolean reject_new)
          Close the connection after all currently processing requests are complete.
 int state()
          Return the state of the channel.
 
Methods inherited from interface org.openorb.orb.net.Channel
active_requests, channel_age, recv, run_recv, transport
 

Field Detail

STATE_CONNECTED

static final int STATE_CONNECTED
Connection open and ready for use.

See Also:
Constant Field Values

STATE_CLOSED

static final int STATE_CLOSED
Connection closed perminently. All requests currently procesing will fail to return.

See Also:
Constant Field Values
Method Detail

orb

org.omg.CORBA.ORB orb()
An orb reference.


state

int state()
Return the state of the channel.


soft_close

void soft_close(boolean reject_new)
Close the connection after all currently processing requests are complete. If there are no currently active requests the channel will close immediatly otherwise if ifActive is true then the channel will close once all currently active requests have completed, and in the mean time new incomming requests will be silently discarded. This call returns immediatly, use the state function to interrogate the state while a close is pending.


close

void close()
Close the connection. This closes the channel immediatly, all replys to current requests will be discarded.