|
XNIO API 2.1.0.CR2 | |||||||||
| 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(Option<T> option)
Get the value of a channel option. |
|
|
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. |
|
| Method Detail |
|---|
boolean supportsOption(Option<?> option)
option - the option
true if it is supported
<T> T getOption(Option<T> option)
throws IOException
T - 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
<T> Configurable setOption(Option<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
IllegalArgumentException - if the value is not acceptable for this option
IOException - if an I/O error occured when modifying the option
|
XNIO API 2.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||