|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activeio.net.VMPipeAsyncChannelServer
public final class VMPipeAsyncChannelServer
| Field Summary |
|---|
| Fields inherited from interface org.activeio.Service |
|---|
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
| Constructor Summary | |
|---|---|
VMPipeAsyncChannelServer(URI bindURI)
|
|
| Method Summary | |
|---|---|
AsyncChannel |
connect()
|
void |
dispose()
This method should not throw any exceptions. |
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. |
Object |
narrow(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 |
setAcceptListener(AcceptListener acceptListener)
Registers an AcceptListener which is notified of accepted channels. |
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VMPipeAsyncChannelServer(URI bindURI)
| Method Detail |
|---|
public URI getBindURI()
ChannelServer
getBindURI in interface ChannelServerpublic URI getConnectURI()
ChannelServer
getConnectURI in interface ChannelServerpublic void dispose()
Disposable
dispose in interface Disposable
public void start()
throws IOException
Service
start in interface ServiceIOExceptionpublic 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 Object narrow(Class target)
Channel
narrow in interface Channelpublic String toString()
toString in class Objectpublic void setAcceptListener(AcceptListener acceptListener)
AsyncChannelServer
setAcceptListener in interface AsyncChannelServerpublic AsyncChannel connect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||