org.jgroups.demos
Class ExecutionServiceDemo.ByteBufferStreamable

java.lang.Object
  extended by org.jgroups.demos.ExecutionServiceDemo.ByteBufferStreamable
All Implemented Interfaces:
Streamable
Enclosing class:
ExecutionServiceDemo

protected static class ExecutionServiceDemo.ByteBufferStreamable
extends java.lang.Object
implements Streamable


Field Summary
protected  java.nio.ByteBuffer buffer
           
 
Constructor Summary
  ExecutionServiceDemo.ByteBufferStreamable()
           
protected ExecutionServiceDemo.ByteBufferStreamable(java.nio.ByteBuffer buffer)
           
 
Method Summary
 void readFrom(java.io.DataInput in)
          Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
 void writeTo(java.io.DataOutput out)
          Write the entire state of the current object (including superclasses) to outstream.
 
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
Constructor Detail

ExecutionServiceDemo.ByteBufferStreamable

public ExecutionServiceDemo.ByteBufferStreamable()

ExecutionServiceDemo.ByteBufferStreamable

protected ExecutionServiceDemo.ByteBufferStreamable(java.nio.ByteBuffer buffer)
Method Detail

writeTo

public void writeTo(java.io.DataOutput out)
             throws java.lang.Exception
Description copied from interface: Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed

Specified by:
writeTo in interface Streamable
Throws:
java.lang.Exception

readFrom

public void readFrom(java.io.DataInput in)
              throws java.lang.Exception
Description copied from interface: Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed

Specified by:
readFrom in interface Streamable
Throws:
java.lang.Exception


Copyright © 1998-2012 Bela Ban / Red Hat. All Rights Reserved.