|
XNIO API 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xnio.channels.AssembledChannel
public class AssembledChannel

A closeable view over a read and write side of a suspendable channel.
| Constructor Summary | |
|---|---|
AssembledChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance. |
|
| Method Summary | ||
|---|---|---|
void |
close()
Close this channel. |
|
ChannelListener.Setter<? extends CloseableChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel. |
|
|
getOption(Option<T> option)
Get the value of a channel option. |
|
XnioWorker |
getWorker()
Get the worker for this channel. |
|
boolean |
isOpen()
|
|
|
setOption(Option<T> option,
T value)
Set an option for this channel. |
|
boolean |
supportsOption(Option<?> option)
Determine whether an option is supported on this channel. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssembledChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
readChannel - the read sidewriteChannel - the write side| Method Detail |
|---|
public ChannelListener.Setter<? extends CloseableChannel> getCloseSetter()
CloseableChannel
getCloseSetter in interface CloseableChannelpublic XnioWorker getWorker()
CloseableChannel
getWorker in interface CloseableChannel
public void close()
throws IOException
CloseableChannel
close in interface Closeableclose in interface Channelclose in interface InterruptibleChannelclose in interface CloseableChannelIOException - if the close failedpublic boolean isOpen()
isOpen in interface Channelpublic boolean supportsOption(Option<?> option)
Configurable
supportsOption in interface Configurableoption - the option
true if it is supported
public <T> T getOption(Option<T> option)
throws IOException
Configurable
getOption in interface ConfigurableT - the type of the option valueoption - the option to get
null if it is not set
IOException - if an I/O error occurred when reading the option
public <T> T setOption(Option<T> option,
T value)
throws IllegalArgumentException,
IOException
Configurable
setOption in interface ConfigurableT - the type of the option valueoption - the option to setvalue - the value of the option to set
IllegalArgumentException - if the value is not acceptable for this option
IOException - if an I/O error occurred when modifying the option
|
XNIO API 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||