|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ChannelAcceptor handles requests on an SystemChannel
to open or close user channels
SystemChannel
,
Connection
Method Summary | |
void |
accept(java.lang.String name,
ChannelHandler handler)
Accept requests for the specified channel, and pass them on to the handler. |
void |
accept(java.lang.String name,
ChannelListener listener)
Accept a single channel connection for the specified name, and bind the listener to it This method returns immediately. |
void |
close()
Close the acceptor, freeing all associated resources |
void |
close(java.lang.String name)
Stop accepting requests on the specified channel |
Method Detail |
public void accept(java.lang.String name, ChannelHandler handler) throws java.rmi.RemoteException
name
- the channel namehandler
- the handler to pass new channels to
java.rmi.RemoteException
- if a handler is already registered for the
specified channel
java.lang.IllegalArgumentException
- if any argument is nullpublic void accept(java.lang.String name, ChannelListener listener) throws java.rmi.RemoteException
name
- the channel name to listen onlistener
- the listener to handle requests on the channel
java.rmi.RemoteException
- if an error occurs accepting channels
java.lang.IllegalArgumentException
- if any argument is nullpublic void close(java.lang.String name)
name
- the channel name
java.lang.IllegalArgumentException
- if name
is nullpublic void close() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |