Package EDU.oswego.cs.dl.util.concurrent

Examples of EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup$InvokableFJTask


     * @param aConnectionState connection state interface.
     */
    MDDiscoverer(Executor anExecutor, ConnectionState aConnectionState)
    {
        connectionState = aConnectionState;
        eventsRunner = new FJTaskRunnerGroup(1);
        executor = anExecutor;
        schedule = new HashSet<String>();
        rescheduleTimer = new Timer(true);
        listeners = new CopyOnWriteArrayList<IDiscoveryListener>();
    }
View Full Code Here


*/
protected Smp(int maxThreads) {
  maxThreads = Math.max(1,maxThreads);
  this.maxThreads = maxThreads;
  if (maxThreads>1) {
    this.taskGroup = new FJTaskRunnerGroup(maxThreads);
  }
  else { // avoid parallel overhead
    this.taskGroup = null;
  }
}
View Full Code Here

TOP

Related Classes of EDU.oswego.cs.dl.util.concurrent.FJTaskRunnerGroup$InvokableFJTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.