Package org.jgroups.demos
Class ExecutionServiceDemo.SortingByteCallable
java.lang.Object
org.jgroups.demos.ExecutionServiceDemo.SortingByteCallable
- All Implemented Interfaces:
Callable<byte[]>,Streamable
- Enclosing class:
ExecutionServiceDemo
public static class ExecutionServiceDemo.SortingByteCallable
extends Object
implements Callable<byte[]>, Streamable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]call()voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
bytes
protected byte[] bytes -
offset
protected int offset -
size
protected int size
-
-
Constructor Details
-
SortingByteCallable
public SortingByteCallable() -
SortingByteCallable
public SortingByteCallable(byte[] bytes, int offset, int size)
-
-
Method Details
-
call
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionIllegalAccessExceptionInstantiationException
-