Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class WrapperSelector.WrapperSelectionKey

java.lang.Object
  extended by java.nio.channels.SelectionKey
      extended by com.tangosol.net.WrapperSelector.WrapperSelectionKey

Enclosing class:
WrapperSelector

public abstract static class WrapperSelector.WrapperSelectionKey
extends java.nio.channels.SelectionKey

WraperSelectionKey which delegates to a real SelectionKey.


Field Summary
protected  java.nio.channels.SelectionKey m_delegate
          The delegate SelectionKey.
protected  WrapperSelector m_selector
          The associated WrapperSelector.

 

Fields inherited from class java.nio.channels.SelectionKey
OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE

 

Constructor Summary
WrapperSelector.WrapperSelectionKey(WrapperSelector selector, java.nio.channels.SelectionKey key, java.lang.Object att)
           

 

Method Summary
 void cancel()
          
abstract  java.nio.channels.SelectableChannel channel()
          
protected  java.lang.String getKeyString(java.nio.channels.SelectionKey key)
          Return a description of the SelectionKey.
 int interestOps()
          
 java.nio.channels.SelectionKey interestOps(int ops)
          
 boolean isValid()
          
 int readyOps()
          
 java.nio.channels.Selector selector()
          
 java.lang.String toString()
          

 

Methods inherited from class java.nio.channels.SelectionKey
attach, attachment, isAcceptable, isConnectable, isReadable, isWritable

 

Field Detail

m_selector

protected final WrapperSelector m_selector
The associated WrapperSelector.

m_delegate

protected final java.nio.channels.SelectionKey m_delegate
The delegate SelectionKey.

Constructor Detail

WrapperSelector.WrapperSelectionKey

public WrapperSelector.WrapperSelectionKey(WrapperSelector selector,
                                           java.nio.channels.SelectionKey key,
                                           java.lang.Object att)

Method Detail

channel

public abstract java.nio.channels.SelectableChannel channel()
Specified by:
channel in class java.nio.channels.SelectionKey

selector

public java.nio.channels.Selector selector()
Specified by:
selector in class java.nio.channels.SelectionKey

isValid

public boolean isValid()
Specified by:
isValid in class java.nio.channels.SelectionKey

cancel

public void cancel()
Specified by:
cancel in class java.nio.channels.SelectionKey

interestOps

public int interestOps()
Specified by:
interestOps in class java.nio.channels.SelectionKey

interestOps

public java.nio.channels.SelectionKey interestOps(int ops)
Specified by:
interestOps in class java.nio.channels.SelectionKey

readyOps

public int readyOps()
Specified by:
readyOps in class java.nio.channels.SelectionKey

getKeyString

protected java.lang.String getKeyString(java.nio.channels.SelectionKey key)
Return a description of the SelectionKey.
Parameters:
key - the seleciton key
Returns:
the description

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.