|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.nio.channels.Selector
java.nio.channels.spi.AbstractSelector
com.tangosol.net.WrapperSelector
public class WrapperSelector
WrapperSelector is a Selector implementation which delegates all calls to a delegate Selector.
Nested Class Summary | |
---|---|
class |
WrapperSelector.KeySet A layered set implementation used for key sets. |
static interface |
WrapperSelector.WrapperSelectableChannel An interface to be implemented by all channels which will be selectable using this Selector. |
static class |
WrapperSelector.WrapperSelectionKey WraperSelectionKey which delegates to a real SelectionKey. |
Field Summary | |
---|---|
protected Selector |
m_delegate The wrapped Selector. |
protected Set |
m_setKeys The selector's keys |
protected Set |
m_setSelectedKeys The selector's selected keys |
Constructor Summary | |
---|---|
WrapperSelector(Selector selector, SelectorProvider provider) Construct a WrapperSelector |
Method Summary | |
---|---|
Selector |
getDelegate() Return the Selector to which this selector delegates. |
protected void |
implCloseSelector() |
Set |
keys() |
static Selector |
open() Unsupported. |
protected SelectionKey |
register(AbstractSelectableChannel ch, int ops, Object att) |
int |
select() |
int |
select(long timeout) |
Set |
selectedKeys() |
int |
selectNow() |
Selector |
wakeup() |
Methods inherited from class java.nio.channels.spi.AbstractSelector |
---|
begin, cancelledKeys, close, deregister, end, isOpen, provider |
Field Detail |
---|
protected final Selector m_delegate
protected final Set m_setKeys
protected final Set m_setSelectedKeys
Constructor Detail |
---|
public WrapperSelector(Selector selector, SelectorProvider provider) throws IOException
selector
- the selector to wrapprovider
- the WrapperSocketProviderIOException
- if an I/O error occursMethod Detail |
---|
public Selector getDelegate()
public static Selector open()
UnsupportedOperationException
public Set keys()
keys
in class Selector
public Set selectedKeys()
selectedKeys
in class Selector
public int select() throws IOException
select
in class Selector
IOException
public int selectNow() throws IOException
selectNow
in class Selector
IOException
public int select(long timeout) throws IOException
select
in class Selector
IOException
public Selector wakeup()
wakeup
in class Selector
protected void implCloseSelector() throws IOException
implCloseSelector
in class AbstractSelector
IOException
protected SelectionKey register(AbstractSelectableChannel ch, int ops, Object att)
register
in class AbstractSelector
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |