public interface Configurable
Modifier and Type | Field and Description |
---|---|
static Configurable |
EMPTY
An empty configurable instance.
|
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.
|
static final Configurable EMPTY
boolean supportsOption(Option<?> option)
option
- the optiontrue
if it is supported<T> T getOption(Option<T> option) throws IOException
T
- the type of the option valueoption
- the option to getnull
if it is not setIOException
- if an I/O error occurred when reading the option<T> T 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 setIllegalArgumentException
- if the value is not acceptable for this optionIOException
- if an I/O error occurred when modifying the optionCopyright © 2017 JBoss by Red Hat. All rights reserved.