|
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.KeySetA layered set implementation used for key sets. |
static interface |
WrapperSelector.WrapperSelectableChannelAn interface to be implemented by all channels which will be selectable using this Selector. |
static class |
WrapperSelector.WrapperSelectionKeyWraperSelectionKey which delegates to a real SelectionKey. |
| Field Summary | |
|---|---|
protected Selector |
m_delegateThe wrapped Selector. |
protected Set |
m_setKeysThe selector's keys |
protected Set |
m_setSelectedKeysThe 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 occurs| Method Detail |
|---|
public Selector getDelegate()
public static Selector open()
UnsupportedOperationExceptionpublic Set keys()
keys in class Selectorpublic Set selectedKeys()
selectedKeys in class Selector
public int select()
throws IOException
select in class SelectorIOException
public int selectNow()
throws IOException
selectNow in class SelectorIOException
public int select(long timeout)
throws IOException
select in class SelectorIOExceptionpublic Selector wakeup()
wakeup in class Selector
protected void implCloseSelector()
throws IOException
implCloseSelector in class AbstractSelectorIOException
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 | |||||||