
public interface Configurable
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOption(Option<T> option)
Get the value of a channel option.
|
<T> T |
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.
|
boolean supportsOption(Option<?> option)
option - the optiontrue if it is supported<T> T getOption(Option<T> option) throws java.io.IOException
T - the type of the option valueoption - the option to getnull if it is not setjava.io.IOException - if an I/O error occurred when reading the option<T> T 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 setjava.lang.IllegalArgumentException - if the value is not acceptable for this optionjava.io.IOException - if an I/O error occurred when modifying the optionCopyright © 2010 JBoss, a division of Red Hat, Inc.