net.therore.concurrent
Class SelfTuningExecutors

java.lang.Object
  extended by net.therore.concurrent.SelfTuningExecutors
All Implemented Interfaces:
SelfTuningExecutorsMBean

public class SelfTuningExecutors
extends Object
implements SelfTuningExecutorsMBean


Field Summary
static long DEFAULT_KEEP_ALIVE_SECONDS
           
static String MBEAN_DOMAIN
           
 
Constructor Summary
SelfTuningExecutors()
           
SelfTuningExecutors(long keepAliveSeconds)
           
SelfTuningExecutors(String name)
           
SelfTuningExecutors(String name, long keepAliveSeconds)
           
 
Method Summary
static SelfTuningExecutors defaultSelfTuningExecutors()
           
 int getDefaultQueueSize()
           
 int getPoolSize()
           
 int getTotalPriority()
           
 boolean isShutdown()
           
 boolean isTerminated()
           
 boolean isTerminating()
           
 SelfTuningExecutorService newSelfTuningExecutor(int corePoolSize, int initPoolSize, int maximumPoolSize)
           
 SelfTuningExecutorService newSelfTuningExecutor(int corePoolSize, int initPoolSize, int maximumPoolSize, int priority, int queueSize)
           
 SelfTuningExecutorService newSelfTuningExecutor(String name, int corePoolSize, int initPoolSize, int maximumPoolSize)
           
 SelfTuningExecutorService newSelfTuningExecutor(String name, int corePoolSize, int initPoolSize, int maximumPoolSize, int priority, int queueSize)
           
 void setDefaultQueueSize(int defaultQueueSize)
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MBEAN_DOMAIN

public static final String MBEAN_DOMAIN
See Also:
Constant Field Values

DEFAULT_KEEP_ALIVE_SECONDS

public static final long DEFAULT_KEEP_ALIVE_SECONDS
See Also:
Constant Field Values
Constructor Detail

SelfTuningExecutors

public SelfTuningExecutors()

SelfTuningExecutors

public SelfTuningExecutors(String name,
                           long keepAliveSeconds)

SelfTuningExecutors

public SelfTuningExecutors(long keepAliveSeconds)

SelfTuningExecutors

public SelfTuningExecutors(String name)
Method Detail

defaultSelfTuningExecutors

public static SelfTuningExecutors defaultSelfTuningExecutors()

getDefaultQueueSize

public int getDefaultQueueSize()
Specified by:
getDefaultQueueSize in interface SelfTuningExecutorsMBean

setDefaultQueueSize

public void setDefaultQueueSize(int defaultQueueSize)
Specified by:
setDefaultQueueSize in interface SelfTuningExecutorsMBean

getTotalPriority

public int getTotalPriority()
Specified by:
getTotalPriority in interface SelfTuningExecutorsMBean

getPoolSize

public int getPoolSize()
Specified by:
getPoolSize in interface SelfTuningExecutorsMBean

newSelfTuningExecutor

public SelfTuningExecutorService newSelfTuningExecutor(int corePoolSize,
                                                       int initPoolSize,
                                                       int maximumPoolSize)

newSelfTuningExecutor

public SelfTuningExecutorService newSelfTuningExecutor(String name,
                                                       int corePoolSize,
                                                       int initPoolSize,
                                                       int maximumPoolSize)

newSelfTuningExecutor

public SelfTuningExecutorService newSelfTuningExecutor(int corePoolSize,
                                                       int initPoolSize,
                                                       int maximumPoolSize,
                                                       int priority,
                                                       int queueSize)

newSelfTuningExecutor

public SelfTuningExecutorService newSelfTuningExecutor(String name,
                                                       int corePoolSize,
                                                       int initPoolSize,
                                                       int maximumPoolSize,
                                                       int priority,
                                                       int queueSize)

isShutdown

public boolean isShutdown()
Specified by:
isShutdown in interface SelfTuningExecutorsMBean

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface SelfTuningExecutorsMBean

isTerminating

public boolean isTerminating()
Specified by:
isTerminating in interface SelfTuningExecutorsMBean

shutDown

public void shutDown()

Copyright 2014 Alfredo Diaz (therore.net)

Copyright © 2014. All rights reserved.