Enum ThreadPoolResourceDefinition
- java.lang.Object
-
- java.lang.Enum<ThreadPoolResourceDefinition>
-
- org.jboss.as.clustering.infinispan.subsystem.ThreadPoolResourceDefinition
-
- All Implemented Interfaces:
Serializable,Comparable<ThreadPoolResourceDefinition>,Function<org.jboss.as.controller.SimpleResourceDefinition.Parameters,org.jboss.as.controller.SimpleResourceDefinition.Parameters>,UnaryOperator<org.jboss.as.controller.SimpleResourceDefinition.Parameters>,org.jboss.as.clustering.controller.Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.clustering.controller.ResourceDefinitionProvider,org.jboss.as.clustering.controller.ResourceServiceConfiguratorFactory,org.jboss.as.clustering.controller.ResourceServiceNameFactory,ScheduledThreadPoolDefinition,ThreadPoolDefinition
public enum ThreadPoolResourceDefinition extends Enum<ThreadPoolResourceDefinition> implements org.jboss.as.clustering.controller.ResourceDefinitionProvider, ThreadPoolDefinition, org.jboss.as.clustering.controller.ResourceServiceConfiguratorFactory, UnaryOperator<org.jboss.as.controller.SimpleResourceDefinition.Parameters>
Thread pool resource definitions for Infinispan subsystem. SeeKnownComponentNamesandBlockingThreadPoolExecutorFactory.create(int, int, boolean)for the hardcoded Infinispan default values.- Author:
- Radoslav Husar
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKINGCLIENTLISTENERNON_BLOCKING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.as.controller.SimpleResourceDefinition.Parametersapply(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters)org.jboss.as.clustering.controller.ResourceServiceConfiguratorcreateServiceConfigurator(org.jboss.as.controller.PathAddress address)org.jboss.as.clustering.controller.AttributegetKeepAliveTime()org.jboss.as.clustering.controller.AttributegetMaxThreads()org.jboss.as.clustering.controller.AttributegetMinThreads()org.jboss.as.controller.PathElementgetPathElement()org.jboss.as.clustering.controller.AttributegetQueueLength()org.jboss.msc.service.ServiceNamegetServiceName(org.jboss.as.controller.PathAddress containerAddress)booleanisNonBlocking()voidregister(org.jboss.as.controller.registry.ManagementResourceRegistration parent)static ThreadPoolResourceDefinitionvalueOf(String name)Returns the enum constant of this type with the specified name.static ThreadPoolResourceDefinition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKING
public static final ThreadPoolResourceDefinition BLOCKING
-
LISTENER
public static final ThreadPoolResourceDefinition LISTENER
-
NON_BLOCKING
public static final ThreadPoolResourceDefinition NON_BLOCKING
-
CLIENT
public static final ThreadPoolResourceDefinition CLIENT
-
-
Method Detail
-
values
public static ThreadPoolResourceDefinition[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThreadPoolResourceDefinition c : ThreadPoolResourceDefinition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThreadPoolResourceDefinition valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
apply
public org.jboss.as.controller.SimpleResourceDefinition.Parameters apply(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters)
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration parent)
- Specified by:
registerin interfaceorg.jboss.as.clustering.controller.Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
-
createServiceConfigurator
public org.jboss.as.clustering.controller.ResourceServiceConfigurator createServiceConfigurator(org.jboss.as.controller.PathAddress address)
- Specified by:
createServiceConfiguratorin interfaceorg.jboss.as.clustering.controller.ResourceServiceConfiguratorFactory
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName(org.jboss.as.controller.PathAddress containerAddress)
- Specified by:
getServiceNamein interfaceorg.jboss.as.clustering.controller.ResourceServiceNameFactory
-
getMinThreads
public org.jboss.as.clustering.controller.Attribute getMinThreads()
- Specified by:
getMinThreadsin interfaceScheduledThreadPoolDefinition
-
getMaxThreads
public org.jboss.as.clustering.controller.Attribute getMaxThreads()
- Specified by:
getMaxThreadsin interfaceThreadPoolDefinition
-
getQueueLength
public org.jboss.as.clustering.controller.Attribute getQueueLength()
- Specified by:
getQueueLengthin interfaceThreadPoolDefinition
-
getKeepAliveTime
public org.jboss.as.clustering.controller.Attribute getKeepAliveTime()
- Specified by:
getKeepAliveTimein interfaceScheduledThreadPoolDefinition
-
isNonBlocking
public boolean isNonBlocking()
- Specified by:
isNonBlockingin interfaceThreadPoolDefinition
-
getPathElement
public org.jboss.as.controller.PathElement getPathElement()
- Specified by:
getPathElementin interfaceorg.jboss.as.clustering.controller.ResourceDefinitionProvider
-
-