|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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 java.nio.channels.Selector |
m_delegate The wrapped Selector. |
protected java.util.Set |
m_setKeys The selector's keys |
protected java.util.Set |
m_setSelectedKeys The selector's selected keys |
Constructor Summary | |
---|---|
WrapperSelector(java.nio.channels.Selector selector, java.nio.channels.spi.SelectorProvider provider) Construct a WrapperSelector |
Method Summary | |
---|---|
java.nio.channels.Selector |
getDelegate() Return the Selector to which this selector delegates. |
protected void |
implCloseSelector() |
java.util.Set |
keys() |
static java.nio.channels.Selector |
open() Unsupported. |
protected java.nio.channels.SelectionKey |
register(java.nio.channels.spi.AbstractSelectableChannel ch, int ops, java.lang.Object att) |
int |
select() |
int |
select(long timeout) |
java.util.Set |
selectedKeys() |
int |
selectNow() |
java.nio.channels.Selector |
wakeup() |
Methods inherited from class java.nio.channels.spi.AbstractSelector |
---|
begin, cancelledKeys, close, deregister, end, isOpen, provider |
Field Detail |
---|
protected final java.nio.channels.Selector m_delegate
protected final java.util.Set m_setKeys
protected final java.util.Set m_setSelectedKeys
Constructor Detail |
---|
public WrapperSelector(java.nio.channels.Selector selector, java.nio.channels.spi.SelectorProvider provider) throws java.io.IOException
selector
- the selector to wrapprovider
- the WrapperSocketProviderjava.io.IOException
- if an I/O error occursMethod Detail |
---|
public java.nio.channels.Selector getDelegate()
public static java.nio.channels.Selector open()
java.lang.UnsupportedOperationException
public java.util.Set keys()
keys
in class java.nio.channels.Selector
public java.util.Set selectedKeys()
selectedKeys
in class java.nio.channels.Selector
public int select() throws java.io.IOException
select
in class java.nio.channels.Selector
java.io.IOException
public int selectNow() throws java.io.IOException
selectNow
in class java.nio.channels.Selector
java.io.IOException
public int select(long timeout) throws java.io.IOException
select
in class java.nio.channels.Selector
java.io.IOException
public java.nio.channels.Selector wakeup()
wakeup
in class java.nio.channels.Selector
protected void implCloseSelector() throws java.io.IOException
implCloseSelector
in class java.nio.channels.spi.AbstractSelector
java.io.IOException
protected java.nio.channels.SelectionKey register(java.nio.channels.spi.AbstractSelectableChannel ch, int ops, java.lang.Object att)
register
in class java.nio.channels.spi.AbstractSelector
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |