org.jdiameter.common.impl.concurrent
Class ConcurrentFactory

java.lang.Object
  extended by org.jdiameter.common.impl.concurrent.ConcurrentFactory
All Implemented Interfaces:
IConcurrentFactory

public class ConcurrentFactory
extends java.lang.Object
implements IConcurrentFactory

Author:
Alexandre Mendonca , Bartosz Baranowski

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdiameter.common.api.concurrent.IConcurrentFactory
IConcurrentFactory.ScheduledExecServices
 
Constructor Summary
ConcurrentFactory(Configuration config, IStatisticManager statisticFactory, IConcurrentEntityFactory entityFactory)
           
 
Method Summary
 java.util.concurrent.ScheduledExecutorService getScheduledExecutorService(java.lang.String name)
           
 java.util.Collection<java.util.concurrent.ScheduledExecutorService> getScheduledExecutorServices()
           
 IStatistic getStatistic()
           
 java.util.List<IStatistic> getStatistics()
           
 java.lang.Thread getThread(java.lang.Runnable runnable)
           
 java.lang.Thread getThread(java.lang.String namePrefix, java.lang.Runnable runnuble)
           
 java.lang.ThreadGroup getThreadGroup()
           
 java.util.List<java.lang.Thread> getThreads()
           
 void shutdownAllNow()
           
 void shutdownNow(java.util.concurrent.ScheduledExecutorService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentFactory

public ConcurrentFactory(Configuration config,
                         IStatisticManager statisticFactory,
                         IConcurrentEntityFactory entityFactory)
Method Detail

getThread

public java.lang.Thread getThread(java.lang.Runnable runnable)
Specified by:
getThread in interface IConcurrentFactory

getThread

public java.lang.Thread getThread(java.lang.String namePrefix,
                                  java.lang.Runnable runnuble)
Specified by:
getThread in interface IConcurrentFactory

getThreads

public java.util.List<java.lang.Thread> getThreads()
Specified by:
getThreads in interface IConcurrentFactory

getThreadGroup

public java.lang.ThreadGroup getThreadGroup()
Specified by:
getThreadGroup in interface IConcurrentFactory

getScheduledExecutorService

public java.util.concurrent.ScheduledExecutorService getScheduledExecutorService(java.lang.String name)
Specified by:
getScheduledExecutorService in interface IConcurrentFactory

getScheduledExecutorServices

public java.util.Collection<java.util.concurrent.ScheduledExecutorService> getScheduledExecutorServices()
Specified by:
getScheduledExecutorServices in interface IConcurrentFactory

shutdownNow

public void shutdownNow(java.util.concurrent.ScheduledExecutorService service)
Specified by:
shutdownNow in interface IConcurrentFactory

getStatistic

public IStatistic getStatistic()
Specified by:
getStatistic in interface IConcurrentFactory

getStatistics

public java.util.List<IStatistic> getStatistics()
Specified by:
getStatistics in interface IConcurrentFactory

shutdownAllNow

public void shutdownAllNow()
Specified by:
shutdownAllNow in interface IConcurrentFactory


Copyright © 2014. All Rights Reserved.