|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Configurable
A channel that has parameters that may be configured while the channel is open.
Method Summary | ||
---|---|---|
|
getOption(ChannelOption<T> option)
Get the value of a channel option. |
|
Set<ChannelOption<?>> |
getOptions()
Get the options that may be set on this channel. |
|
|
setOption(ChannelOption<T> option,
T value)
Set an option for this channel. |
Method Detail |
---|
<T> T getOption(ChannelOption<T> option) throws UnsupportedOptionException, IOException
T
- the type of the option valueoption
- the option to get
UnsupportedOptionException
- if the option is not supported by this channel
IOException
- if an I/O error occurred when reading the optionSet<ChannelOption<?>> getOptions()
<T> Configurable setOption(ChannelOption<T> option, T value) throws IllegalArgumentException, IOException
T
- the type of the option valueoption
- the option to setvalue
- the value of the option to set
UnsupportedOptionException
- if the option is not supported by this channel
IllegalArgumentException
- if the value is not acceptable for this option
IOException
- if an I/O error occured when modifying the option
|
XNIO version 1.2.0.GA | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |