|
XNIO API 2.0.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(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 java.io.IOException
T - the type of the option valueoption - the option to get
null if it is not set
java.io.IOException - if an I/O error occurred when reading the option
<T> Configurable setOption(Option<T> option,
T value)
throws java.lang.IllegalArgumentException,
java.io.IOException
T - the type of the option valueoption - the option to setvalue - the value of the option to set
java.lang.IllegalArgumentException - if the value is not acceptable for this option
java.io.IOException - if an I/O error occured when modifying the option
|
XNIO API 2.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||