org.gcube.application.aquamaps.aquamapsservice.impl.util
Class MyPooledExecutor.MyThreadFactory

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsservice.impl.util.MyPooledExecutor.MyThreadFactory
All Implemented Interfaces:
ThreadFactory
Enclosing class:
MyPooledExecutor

protected static class MyPooledExecutor.MyThreadFactory
extends Object
implements ThreadFactory

Uses java.util.concurrent.Executors.defaultThreadFactory() setting threadLabel and priority (optional)

Author:
fabio

Constructor Summary
MyPooledExecutor.MyThreadFactory(String threadLabel)
           
MyPooledExecutor.MyThreadFactory(String threadLabel, int priority)
           
 
Method Summary
 Thread newThread(Runnable arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPooledExecutor.MyThreadFactory

public MyPooledExecutor.MyThreadFactory(String threadLabel,
                                        int priority)

MyPooledExecutor.MyThreadFactory

public MyPooledExecutor.MyThreadFactory(String threadLabel)
Method Detail

newThread

public Thread newThread(Runnable arg0)
Specified by:
newThread in interface ThreadFactory


Copyright © 2014. All Rights Reserved.