|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activeio.net.VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter
public static class VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter
Used to marshal calls to a PipeChannel in a different classloader.
| Nested Class Summary | |
|---|---|
class |
VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter.ListenerProxyHandler
|
| Field Summary |
|---|
| Fields inherited from interface org.activeio.Service |
|---|
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
| Fields inherited from interface org.activeio.Service |
|---|
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
| Constructor Summary | |
|---|---|
VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter(Object channel)
|
|
| Method Summary | |
|---|---|
void |
dispose()
This method should not throw any exceptions. |
void |
flush()
Some channels may buffer data which may be sent down if flush() is called. |
AsyncChannelListener |
getAsyncChannelListener()
|
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 |
setAsyncChannelListener(AsyncChannelListener channelListener)
Registers the ChannelConsumer that the protcol will use to deliver packets
coming 'up' the channel. |
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
void |
write(Packet packet)
Sends a packet down the channel towards the media. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter(Object channel)
throws SecurityException,
NoSuchMethodException,
ClassNotFoundException
SecurityException
NoSuchMethodException
ClassNotFoundException| Method Detail |
|---|
public void write(Packet packet)
throws IOException
OutputChannel
write in interface OutputChannelIOExceptionpublic void setAsyncChannelListener(AsyncChannelListener channelListener)
InputAsyncChannelChannelConsumer that the protcol will use to deliver packets
coming 'up' the channel.
setAsyncChannelListener in interface InputAsyncChannelpublic AsyncChannelListener getAsyncChannelListener()
getAsyncChannelListener in interface InputAsyncChannelpublic void dispose()
Disposable
dispose in interface Disposable
public void start()
throws IOException
Service
start in interface ServiceIOException
public void stop(long timeout)
throws IOException
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.
IOExceptionpublic Object narrow(Class target)
Channel
narrow in interface Channel
public void flush()
throws IOException
OutputChannel
flush in interface OutputChannelIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||