public class ExecutionServiceDemo
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | ExecutionServiceDemo.ByteBufferStreamable | 
| static class  | ExecutionServiceDemo.SortingByteCallable | 
| static class  | ExecutionServiceDemo.SortingTwoByteCallableSorts 2 byte arrys into a larger byte array | 
| Modifier and Type | Field and Description | 
|---|---|
| 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 | 
| Constructor and Description | 
|---|
| ExecutionServiceDemo(java.lang.String props,
                    java.lang.String name,
                    int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected static void | help() | 
| protected void | loop() | 
| static void | main(java.lang.String[] args) | 
| void | start() | 
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.Exceptionpublic void start()
           throws java.lang.Exception
java.lang.Exceptionprotected void loop()
             throws java.lang.Exception
java.lang.Exceptionprotected static void help()
Copyright © 1998-2020 Red Hat. All Rights Reserved.