rice.post.proxy
Class PostProxy.LivenessKeyHandler
java.lang.Object
rice.selector.SelectionKeyHandler
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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.
Copyright © 2001-2005 - Rice Pastry.