rice.pastry.wire
Class StaleSKH

java.lang.Object
  extended byrice.pastry.wire.StaleSKH
All Implemented Interfaces:
SelectionKeyHandler

public class StaleSKH
extends java.lang.Object
implements SelectionKeyHandler

The purpose of this class is to be able to have a key in the SelectorManager without an attachment while it is pending being attached. If a StaleSKH is attached, then the key will be cancelled next time it is read.


Constructor Summary
StaleSKH()
          Constructor for StaleSKH.
 
Method Summary
 void accept(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes acceptable.
 void connect(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes connectable.
 void read(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes readable.
 void write(java.nio.channels.SelectionKey key)
          Method which is called when the key becomes writable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaleSKH

public StaleSKH()
Constructor for StaleSKH.

Method Detail

accept

public void accept(java.nio.channels.SelectionKey key)
Description copied from interface: SelectionKeyHandler
Method which is called when the key becomes acceptable.

Specified by:
accept in interface SelectionKeyHandler
Parameters:
key - The key which is acceptable.

connect

public void connect(java.nio.channels.SelectionKey key)
Description copied from interface: SelectionKeyHandler
Method which is called when the key becomes connectable.

Specified by:
connect in interface SelectionKeyHandler
Parameters:
key - The key which is connectable.

read

public void read(java.nio.channels.SelectionKey key)
Description copied from interface: SelectionKeyHandler
Method which is called when the key becomes readable.

Specified by:
read in interface SelectionKeyHandler
Parameters:
key - The key which is readable.

write

public void write(java.nio.channels.SelectionKey key)
Description copied from interface: SelectionKeyHandler
Method which is called when the key becomes writable.

Specified by:
write in interface SelectionKeyHandler
Parameters:
key - The key which is writable.





Imprint-Dataprotection