public class ExecutionServiceDemo
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
protected static class |
ExecutionServiceDemo.ByteBufferStreamable |
static class |
ExecutionServiceDemo.SortingByteCallable |
static class |
ExecutionServiceDemo.SortingTwoByteCallable
Sorts 2 byte arrys into a larger byte array
|
限定符和类型 | 字段和说明 |
---|---|
protected JChannel |
ch |
protected ExecutionService |
execution_service |
protected java.util.concurrent.ExecutorService |
executor |
protected java.lang.String |
name |
protected boolean |
printValues |
protected java.lang.String |
props |
protected java.util.Queue<java.util.concurrent.Future<?>> |
queue |
protected java.util.Random |
random |
protected ExecutionRunner |
runner |
protected int |
size |
构造器和说明 |
---|
ExecutionServiceDemo(java.lang.String props,
java.lang.String name,
int size) |
protected java.lang.String props
protected JChannel ch
protected ExecutionService execution_service
protected java.lang.String name
protected ExecutionRunner runner
protected int size
protected boolean printValues
protected java.util.Random random
protected java.util.concurrent.ExecutorService executor
protected java.util.Queue<java.util.concurrent.Future<?>> queue
public ExecutionServiceDemo(java.lang.String props, java.lang.String name, int size)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
protected void loop() throws java.lang.Exception
java.lang.Exception
protected static void help()