A B C D E G H I L M N O P R S T U V W

A

Activator - Class in org.apache.sling.commons.threads.impl
This activator registers the thread pool manager.
Activator() - Constructor for class org.apache.sling.commons.threads.impl.Activator
 

B

bundleContext - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
The bundle context.

C

configuration - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
create(ThreadPoolConfig) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
create(ThreadPoolConfig, String) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
create(ThreadPoolConfig) - Method in interface org.apache.sling.commons.threads.ThreadPoolManager
Create a new thread pool with this configuration.
create(ThreadPoolConfig, String) - Method in interface org.apache.sling.commons.threads.ThreadPoolManager
Create a new thread pool with this configuration.

D

decUsage() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
Decrement the usage counter, and if its zero initiate a shutdown the entry (and the thread pool).
DEFAULT_THREADPOOL_NAME - Static variable in interface org.apache.sling.commons.threads.ThreadPoolManager
The default thread pool name
DefaultThreadPool - Class in org.apache.sling.commons.threads.impl
The DefaultThreadPool class implements the ThreadPool interface.
DefaultThreadPool(String, ThreadPoolConfig) - Constructor for class org.apache.sling.commons.threads.impl.DefaultThreadPool
Create a new thread pool.
DefaultThreadPoolManager - Class in org.apache.sling.commons.threads.impl
The DefaultThreadPoolManager implements the ThreadPoolManager interface and is responsible for managing ThreadPools.
DefaultThreadPoolManager(BundleContext, Dictionary<String, Object>) - Constructor for class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
Constructor and activate this component.
DefaultThreadPoolManager.Entry - Class in org.apache.sling.commons.threads.impl
 
DefaultThreadPoolManager.Entry(String, ThreadPoolConfig, String, BundleContext) - Constructor for class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
deleted(String) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
destroy() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
Deactivate this component.
destroyPlugin() - Static method in class org.apache.sling.commons.threads.impl.WebConsolePrinter
 

E

equals(Object) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
execute(Runnable) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
execute(Runnable) - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
execute(Runnable) - Method in interface org.apache.sling.commons.threads.ThreadPool
Execute a runnable
executor - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPool
The executor.
ExtendedThreadFactory - Class in org.apache.sling.commons.threads.impl
This class is responsible to create new Thread instances.
ExtendedThreadFactory(ThreadFactory, ThreadPoolConfig.ThreadPriority, boolean) - Constructor for class org.apache.sling.commons.threads.impl.ExtendedThreadFactory
Create a new wrapper for a thread factory handling the

G

get(String) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
get(String) - Method in interface org.apache.sling.commons.threads.ThreadPoolManager
Get a thread pool.
getBlockPolicy() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the block policy of the thread pool.
getBlockPolicy() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getBlockPolicy() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the block policy.
getConfig() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
getConfiguration() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
getConfiguration() - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
getConfiguration() - Method in interface org.apache.sling.commons.threads.ThreadPool
The thread pool configuration.
getConfigurations() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
Return all configurations for the web console printer
getExecutor() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
getExecutor() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
getExecutor() - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
getExecutorActiveCount() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the active count from the pool's Executor.
getExecutorCompletedTaskCount() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the completed task count from the pool's Executor.
getExecutorCorePoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the core pool size from the pool's Executor.
getExecutorLargestPoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the largest pool size from the pool's Executor.
getExecutorMaximumPoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the maximum pool size from the pool's Executor.
getExecutorPoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the pool size from the pool's Executor.
getExecutorTaskCount() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Retrieve the task count from the pool's Executor.
getFactory() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getFactory() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the thread pool factory.
getKeepAliveTime() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configured keep alive time.
getKeepAliveTime() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getKeepAliveTime() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the keep alive time.
getMaxPoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configured maximum pool size.
getMaxPoolSize() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getMaxPoolSize() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the maximum pool size
getMinPoolSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the minimum pool size.
getMinPoolSize() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getMinPoolSize() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the minimum pool size.
getName() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
getName() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
getName() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
getName() - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
getName() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the name of the thread pool
getName() - Method in interface org.apache.sling.commons.threads.ThreadPool
The name of the thread pool.
getPid() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
getPid() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configuration pid of the thread pool.
getPriority() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configured priority of the thread pool.
getPriority() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getPriority() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the priority for the threads.
getQueueSize() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configured queue size.
getQueueSize() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getQueueSize() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the queue size.
getShutdownWaitTimeMs() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return the configured shutdown wait time in milliseconds.
getShutdownWaitTimeMs() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
getShutdownWaitTimeMs() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return the shutdown wait time in ms.

H

hashCode() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 

I

incUsage() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
Increments a usage counter and gets the ThreadPoolFacade inside the Entry.
initPlugin(BundleContext, DefaultThreadPoolManager) - Static method in class org.apache.sling.commons.threads.impl.WebConsolePrinter
 
isDaemon() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return whether or not the thread pool creates daemon threads.
isDaemon() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
isDaemon() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Return if daemon threads should be created.
isShutdownGraceful() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return whether or not the thread pool is configured to shutdown gracefully.
isShutdownGraceful() - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
 
isShutdownGraceful() - Method in interface org.apache.sling.commons.threads.ThreadPoolConfig
Should this pool shutdown graceful.
isUsed() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
isUsed() - Method in interface org.apache.sling.commons.threads.jmx.ThreadPoolMBean
Return whether or not the thread pool is in use.

L

logger - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPool
By default we use the logger for this class.
logger - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
By default we use the logger for this class.

M

ModifiableThreadPoolConfig - Class in org.apache.sling.commons.threads
This is a modifiable thread pool configuration that can be instantiated and then configured to create a new thread pool.
ModifiableThreadPoolConfig() - Constructor for class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Create a new default configuration.
ModifiableThreadPoolConfig(ThreadPoolConfig) - Constructor for class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Clone an existing configuration

N

name - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPool
The name of this thread pool
newThread(Runnable) - Method in class org.apache.sling.commons.threads.impl.ExtendedThreadFactory
Invoke the thread factory and set the daemon flag and priority.

O

org.apache.sling.commons.threads - package org.apache.sling.commons.threads
 
org.apache.sling.commons.threads.impl - package org.apache.sling.commons.threads.impl
 
org.apache.sling.commons.threads.jmx - package org.apache.sling.commons.threads.jmx
 

P

pools - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
The managed thread pools
printConfiguration(PrintWriter) - Method in class org.apache.sling.commons.threads.impl.WebConsolePrinter
Print out the servlet filter chains.
properties - Variable in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
The properties.
PROPERTY_BLOCK_POLICY - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the block policy.
PROPERTY_DAEMON - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the daemon flag.
PROPERTY_KEEP_ALIVE_TIME - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the keep alive time.
PROPERTY_MAX_POOL_SIZE - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the max pool size.
PROPERTY_MIN_POOL_SIZE - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the min pool size.
PROPERTY_NAME - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the thread pool name.
PROPERTY_PRIORITY - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the priority.
PROPERTY_QUEUE_SIZE - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the queue size.
PROPERTY_SHUTDOWN_GRACEFUL - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the shutdown graceful flag.
PROPERTY_SHUTDOWN_WAIT_TIME - Static variable in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Configuration property for the shutdown wait time.

R

registerMBean() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
release(ThreadPool) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 
release(ThreadPool) - Method in interface org.apache.sling.commons.threads.ThreadPoolManager
Release the thread pool again.

S

setBlockPolicy(ThreadPoolConfig.ThreadPoolPolicy) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the block policy.
setDaemon(boolean) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the daemon handling.
setFactory(ThreadFactory) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the thread factory.
setKeepAliveTime(long) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the keep alive time.
setMaxPoolSize(int) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the max pool size.
setMinPoolSize(int) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the min pool size.
setName(String) - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
Update name
setPool(DefaultThreadPool) - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
Update pool
setPriority(ThreadPoolConfig.ThreadPriority) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the thread priority.
setQueueSize(int) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the queue size.
setShutdownGraceful(boolean) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set if the pool should be shutdown graceful.
setShutdownWaitTimeMs(int) - Method in class org.apache.sling.commons.threads.ModifiableThreadPoolConfig
Set the shutdown wait time.
shutdown() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
Shut down the threadpool.
shutdown() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
shutdown() - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
Shutdown this thread pool.
start(BundleContext) - Method in class org.apache.sling.commons.threads.impl.Activator
 
stop(BundleContext) - Method in class org.apache.sling.commons.threads.impl.Activator
 
submit(Callable<T>) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
submit(Runnable) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPool
 
submit(Callable<T>) - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
submit(Runnable) - Method in class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
submit(Callable<T>) - Method in interface org.apache.sling.commons.threads.ThreadPool
Submits a callable for execution
submit(Runnable) - Method in interface org.apache.sling.commons.threads.ThreadPool
Submits a runnable for execution

T

ThreadPool - Interface in org.apache.sling.commons.threads
The thread pool interface allows to start runnables by getting threads from a managed pool.
ThreadPoolConfig - Interface in org.apache.sling.commons.threads
The thread pool configuration.
ThreadPoolConfig.ThreadPoolPolicy - Enum in org.apache.sling.commons.threads
The thread pool policies.
ThreadPoolConfig.ThreadPriority - Enum in org.apache.sling.commons.threads
 
ThreadPoolFacade - Class in org.apache.sling.commons.threads.impl
This is a facade which is delivered to clients.
ThreadPoolFacade(DefaultThreadPool) - Constructor for class org.apache.sling.commons.threads.impl.ThreadPoolFacade
 
ThreadPoolManager - Interface in org.apache.sling.commons.threads
The ThreadPoolManager manages thread pools.
ThreadPoolMBean - Interface in org.apache.sling.commons.threads.jmx
This is the management interface for a Sling Thread Pool.

U

unregisterMBean() - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
update(ThreadPoolConfig, String, String) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager.Entry
 
updated(String, Dictionary) - Method in class org.apache.sling.commons.threads.impl.DefaultThreadPoolManager
 

V

valueOf(String) - Static method in enum org.apache.sling.commons.threads.ThreadPoolConfig.ThreadPoolPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.sling.commons.threads.ThreadPoolConfig.ThreadPriority
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.sling.commons.threads.ThreadPoolConfig.ThreadPoolPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.sling.commons.threads.ThreadPoolConfig.ThreadPriority
Returns an array containing the constants of this enum type, in the order they are declared.

W

WebConsolePrinter - Class in org.apache.sling.commons.threads.impl
This is a configuration printer for the web console which prints out the thread pools.
WebConsolePrinter(DefaultThreadPoolManager) - Constructor for class org.apache.sling.commons.threads.impl.WebConsolePrinter
 

A B C D E G H I L M N O P R S T U V W

Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.