org.activeio
Interface ChannelServer
- All Superinterfaces:
- Channel, Disposable, Service
- All Known Subinterfaces:
- AsyncChannelServer, StreamChannelServer, SyncChannelServer
- All Known Implementing Classes:
- AsyncToSyncChannelServer, FilterAsyncChannelServer, FilterSyncChannelServer, NIOAsyncChannelServer, NIOSyncChannelServer, OnePortAsyncChannelServer, SocketStreamChannelServer, SocketSyncChannelServer, SyncToAsyncChannelServer, VMPipeAsyncChannelServer
public interface ChannelServer
- extends Channel
A ChannelServer is used to accept incoming requests to establish new Channel sessions.
Like a normal Channel
, A ChannelServer comes in two falvors, either:
AsyncChannelServer
or
org.activeio.SynchChannelServer
.
- Version:
- $Revision$
Method Summary |
URI |
getBindURI()
The URI that was used when the channel was bound. |
URI |
getConnectURI()
Once bound, the channel may be able to construct a URI that is more sutible for when
a client needs to connect to the server. |
getBindURI
URI getBindURI()
- The URI that was used when the channel was bound. This could be different
than what is used by a client to connect to the ChannelServer. For example,
the bind URI might be tcp://localhost:0 which means the channel should bind to
an anonymous port.
- Returns:
- The URI that was used when the channel was bound
getConnectURI
URI getConnectURI()
- Once bound, the channel may be able to construct a URI that is more sutible for when
a client needs to connect to the server. For examle the port of the URI may be
updated to reflect the actual local port that the channel server is listening on.
- Returns:
- a URI that a client can use to connect to the server or null if the channel cannot construct the URI.
Copyright © -2009 The ActiveIO Project. All Rights Reserved.