Class ExecutionServiceDemo


  • public class ExecutionServiceDemo
    extends java.lang.Object
    • Field Detail

      • props

        protected java.lang.String props
      • name

        protected java.lang.String name
      • size

        protected int size
      • printValues

        protected boolean printValues
      • random

        protected java.util.Random random
      • executor

        protected java.util.concurrent.ExecutorService executor
      • queue

        protected java.util.Queue<java.util.concurrent.Future<?>> queue
    • Constructor Detail

      • ExecutionServiceDemo

        public ExecutionServiceDemo​(java.lang.String props,
                                    java.lang.String name,
                                    int size)
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • start

        public void start()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • loop

        protected void loop()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • help

        protected static void help()