|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activeio.net.AIOSynchChannelServer
| Field Summary |
| Fields inherited from interface org.activeio.SynchChannelServer |
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
| Constructor Summary | |
AIOSynchChannelServer(com.ibm.io.async.AsyncServerSocketChannel serverSocket,
java.net.URI bindURI,
java.net.URI connectURI)
|
|
| Method Summary | |
Channel |
accept(long timeout)
|
void |
dispose()
This method should not throw any exceptions. |
java.net.URI |
getBindURI()
The URI that was used when the channel was bound. |
java.net.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. |
java.lang.Object |
narrow(java.lang.Class target)
Since a Channel may be composed from a chain of other Channel obejcts, this method allows you to query the chain for the specified interface. |
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AIOSynchChannelServer(com.ibm.io.async.AsyncServerSocketChannel serverSocket,
java.net.URI bindURI,
java.net.URI connectURI)
throws java.io.IOException
| Method Detail |
public java.net.URI getBindURI()
ChannelServer
getBindURI in interface ChannelServerpublic java.net.URI getConnectURI()
ChannelServer
getConnectURI in interface ChannelServerpublic void dispose()
Disposable
dispose in interface Disposable
public void start()
throws java.io.IOException
Service
start in interface Servicejava.io.IOExceptionpublic void stop(long timeout)
Service
stop in interface Servicetimeout - The amount of time the channel is allowed to take to gracefully stop. If the timeout
is exceeded, the channel should do a forcefull stop.
public Channel accept(long timeout)
throws java.io.IOException
accept in interface SynchChannelServerjava.io.IOExceptionpublic java.lang.Object narrow(java.lang.Class target)
Channel
narrow in interface Channelpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||