org.gcube.data.harmonization.occurrence.operating
Class MyThreadFactory

java.lang.Object
  extended by org.gcube.data.harmonization.occurrence.operating.MyThreadFactory
All Implemented Interfaces:
ThreadFactory

public class MyThreadFactory
extends Object
implements ThreadFactory

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

Author:
fabio

Constructor Summary
MyThreadFactory(String threadLabel)
           
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

MyThreadFactory

public MyThreadFactory(String threadLabel,
                       int priority)

MyThreadFactory

public MyThreadFactory(String threadLabel)
Method Detail

newThread

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


Copyright © 2012. All Rights Reserved.