ePOST API

rice.post.proxy
Class PostProxy.LivenessKeyHandler

java.lang.Object
  extended by rice.selector.SelectionKeyHandler
      extended by rice.post.proxy.PostProxy.LivenessKeyHandler
Enclosing class:
PostProxy

protected class PostProxy.LivenessKeyHandler
extends SelectionKeyHandler


Field Summary
protected  java.nio.ByteBuffer buffer
           
protected  java.nio.channels.Pipe.SinkChannel sink
           
protected  java.nio.channels.SelectionKey sinkKey
           
protected  java.nio.channels.Pipe.SourceChannel source
           
protected  java.nio.channels.SelectionKey sourceKey
           
 
Constructor Summary
PostProxy.LivenessKeyHandler(Environment env, java.nio.channels.Pipe.SourceChannel source, java.nio.channels.Pipe.SinkChannel sink)
           
 
Method Summary
 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 rice.selector.SelectionKeyHandler
accept, connect, modifyKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected java.nio.ByteBuffer buffer

source

protected java.nio.channels.Pipe.SourceChannel source

sink

protected java.nio.channels.Pipe.SinkChannel sink

sourceKey

protected java.nio.channels.SelectionKey sourceKey

sinkKey

protected java.nio.channels.SelectionKey sinkKey
Constructor Detail

PostProxy.LivenessKeyHandler

public PostProxy.LivenessKeyHandler(Environment env,
                                    java.nio.channels.Pipe.SourceChannel source,
                                    java.nio.channels.Pipe.SinkChannel sink)
                             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

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

Overrides:
read in class SelectionKeyHandler
Parameters:
key - The key which is readable.

write

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

Overrides:
write in class SelectionKeyHandler
Parameters:
key - The key which is writable.

ePOST API

Copyright © 2001-2005 - Rice Pastry.