|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activeio.net.VMPipeAsynchChannelPipe.PipeChannel
| Field Summary |
| Fields inherited from interface org.activeio.Service |
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
| Constructor Summary | |
VMPipeAsynchChannelPipe.PipeChannel()
|
|
| 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. |
AsynchChannelListener |
getAsynchChannelListener()
|
java.lang.String |
getId()
|
VMPipeAsynchChannelPipe.PipeChannel |
getSibiling()
|
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 |
setAsynchChannelListener(AsynchChannelListener channelListener)
Registers the ChannelConsumer that the protcol will use to deliver packets
comming 'up' the channel. |
void |
setSibiling(VMPipeAsynchChannelPipe.PipeChannel sibiling)
|
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
java.lang.String |
toString()
|
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, wait, wait, wait |
| Constructor Detail |
public VMPipeAsynchChannelPipe.PipeChannel()
| Method Detail |
public void setAsynchChannelListener(AsynchChannelListener channelListener)
InputAsynchChannelChannelConsumer that the protcol will use to deliver packets
comming 'up' the channel.
setAsynchChannelListener in interface InputAsynchChannelpublic AsynchChannelListener getAsynchChannelListener()
getAsynchChannelListener in interface InputAsynchChannel
public void write(Packet packet)
throws java.io.IOException
OutputChannel
write in interface OutputChannelpacket -
java.io.IOException
public void flush()
throws java.io.IOException
OutputChannel
flush in interface OutputChanneljava.io.IOException
public void start()
throws java.io.IOException
Service
start in interface Servicejava.io.IOException
public void stop(long timeout)
throws java.io.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.
java.io.IOExceptionpublic void dispose()
Disposable
dispose in interface Disposablepublic VMPipeAsynchChannelPipe.PipeChannel getSibiling()
public void setSibiling(VMPipeAsynchChannelPipe.PipeChannel sibiling)
public java.lang.Object narrow(java.lang.Class target)
Channel
narrow in interface Channelpublic java.lang.String getId()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||