Package org.jgroups.demos
Class ExecutionServiceDemo.SortingTwoByteCallable
java.lang.Object
org.jgroups.demos.ExecutionServiceDemo.SortingTwoByteCallable
- All Implemented Interfaces:
Callable<byte[]>,Streamable
- Enclosing class:
ExecutionServiceDemo
public static class ExecutionServiceDemo.SortingTwoByteCallable
extends Object
implements Callable<byte[]>, Streamable
Sorts 2 byte arrys into a larger byte array
- Author:
- wburns
-
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
-
bytes1
protected byte[] bytes1 -
bytes2
protected byte[] bytes2
-
-
Constructor Details
-
SortingTwoByteCallable
public SortingTwoByteCallable() -
SortingTwoByteCallable
public SortingTwoByteCallable(byte[] ints1, byte[] ints2)
-
-
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
-