com.atlassian.confluence.event
Class CpuBasedThreadPoolConfiguration

java.lang.Object
  extended by com.atlassian.confluence.event.CpuBasedThreadPoolConfiguration
All Implemented Interfaces:
com.atlassian.event.config.EventThreadPoolConfiguration

public class CpuBasedThreadPoolConfiguration
extends java.lang.Object
implements com.atlassian.event.config.EventThreadPoolConfiguration


Field Summary
static int AVAILABLE_PROCESSORS
           
static int CORE_POOL_SIZE
           
static java.lang.String CORE_POOL_SIZE_KEY
           
static long KEEP_ALIVE_TIME
           
static int MAXIMUM_POOL_SIZE
           
static java.lang.String MAXIMUM_POOL_SIZE_KEY
           
static int QUEUE_SIZE
           
static java.lang.String QUEUE_SIZE_KEY
           
 
Constructor Summary
CpuBasedThreadPoolConfiguration()
           
 
Method Summary
 int getCorePoolSize()
           
 long getKeepAliveTime()
           
 int getMaximumPoolSize()
           
 java.util.concurrent.TimeUnit getTimeUnit()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CORE_POOL_SIZE_KEY

public static final java.lang.String CORE_POOL_SIZE_KEY
See Also:
Constant Field Values

MAXIMUM_POOL_SIZE_KEY

public static final java.lang.String MAXIMUM_POOL_SIZE_KEY
See Also:
Constant Field Values

QUEUE_SIZE_KEY

public static final java.lang.String QUEUE_SIZE_KEY
See Also:
Constant Field Values

AVAILABLE_PROCESSORS

public static final int AVAILABLE_PROCESSORS

CORE_POOL_SIZE

public static final int CORE_POOL_SIZE

MAXIMUM_POOL_SIZE

public static final int MAXIMUM_POOL_SIZE

QUEUE_SIZE

public static final int QUEUE_SIZE

KEEP_ALIVE_TIME

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

CpuBasedThreadPoolConfiguration

public CpuBasedThreadPoolConfiguration()
Method Detail

getCorePoolSize

public int getCorePoolSize()
Specified by:
getCorePoolSize in interface com.atlassian.event.config.EventThreadPoolConfiguration

getMaximumPoolSize

public int getMaximumPoolSize()
Specified by:
getMaximumPoolSize in interface com.atlassian.event.config.EventThreadPoolConfiguration

getKeepAliveTime

public long getKeepAliveTime()
Specified by:
getKeepAliveTime in interface com.atlassian.event.config.EventThreadPoolConfiguration

getTimeUnit

public java.util.concurrent.TimeUnit getTimeUnit()
Specified by:
getTimeUnit in interface com.atlassian.event.config.EventThreadPoolConfiguration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.