org.npsnet.xrti
Class MessageChannelAcceptor

java.lang.Object
  extended byorg.npsnet.xrti.MessageChannelAcceptor
Direct Known Subclasses:
InternetMessageChannelAcceptor

public abstract class MessageChannelAcceptor
extends java.lang.Object

The abstract base class of all message channel acceptors.

Author:
Andrzej Kapolka

Constructor Summary
MessageChannelAcceptor()
           
 
Method Summary
abstract  MessageChannel acceptMessageChannel()
          Accepts a new message channel.
abstract  void close()
          Closes this acceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageChannelAcceptor

public MessageChannelAcceptor()
Method Detail

acceptMessageChannel

public abstract MessageChannel acceptMessageChannel()
                                             throws java.io.IOException
Accepts a new message channel. Blocks until a message channel is available for acceptance.

Returns:
the newly accepted channel
Throws:
java.io.IOException - if an error occurs

close

public abstract void close()
                    throws java.io.IOException
Closes this acceptor.

Throws:
java.io.IOException - if an error occurs