Class ManagedScheduledExecutorDefinitionInjectionSource
- java.lang.Object
-
- org.jboss.as.ee.component.InjectionSource
-
- org.jboss.as.ee.resource.definition.ResourceDefinitionInjectionSource
-
- org.jboss.as.ee.concurrent.resource.definition.ManagedScheduledExecutorDefinitionInjectionSource
-
public class ManagedScheduledExecutorDefinitionInjectionSource extends ResourceDefinitionInjectionSource
TheResourceDefinitionInjectionSource
forManagedScheduledExecutorDefinition
.- Author:
- emmartins
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.as.ee.component.InjectionSource
InjectionSource.ResolutionContext
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_PROP
static String
HUNG_TASK_THRESHOLD_PROP
static String
MAX_ASYNC_PROP
-
Fields inherited from class org.jboss.as.ee.resource.definition.ResourceDefinitionInjectionSource
jndiName, properties
-
-
Constructor Summary
Constructors Constructor Description ManagedScheduledExecutorDefinitionInjectionSource(String jndiName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContextServiceRef()
int
getHungTaskTerminationPeriod()
long
getHungTaskThreshold()
long
getKeepAliveTime()
TimeUnit
getKeepAliveTimeUnit()
int
getMaxAsync()
org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy
getRejectPolicy()
void
getResourceValue(InjectionSource.ResolutionContext context, org.jboss.msc.service.ServiceBuilder<?> serviceBuilder, org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext, org.jboss.msc.inject.Injector<ManagedReferenceFactory> injector)
Get the value to use as the injection source.long
getThreadLifeTime()
int
getThreadPriority()
boolean
isLongRunningTasks()
void
setContextServiceRef(String contextServiceRef)
void
setHungTaskTerminationPeriod(int hungTaskTerminationPeriod)
void
setHungTaskThreshold(long hungTaskThreshold)
void
setKeepAliveTime(long keepAliveTime)
void
setKeepAliveTimeUnit(TimeUnit keepAliveTimeUnit)
void
setLongRunningTasks(boolean longRunningTasks)
void
setMaxAsync(int maxAsync)
void
setRejectPolicy(org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy)
void
setThreadLifeTime(long threadLifeTime)
void
setThreadPriority(int threadPriority)
-
Methods inherited from class org.jboss.as.ee.resource.definition.ResourceDefinitionInjectionSource
addProperties, addProperties, addProperties, equals, getJndiName, hashCode, uniqueName
-
-
-
-
Field Detail
-
CONTEXT_PROP
public static final String CONTEXT_PROP
- See Also:
- Constant Field Values
-
HUNG_TASK_THRESHOLD_PROP
public static final String HUNG_TASK_THRESHOLD_PROP
- See Also:
- Constant Field Values
-
MAX_ASYNC_PROP
public static final String MAX_ASYNC_PROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ManagedScheduledExecutorDefinitionInjectionSource
public ManagedScheduledExecutorDefinitionInjectionSource(String jndiName)
-
-
Method Detail
-
getResourceValue
public void getResourceValue(InjectionSource.ResolutionContext context, org.jboss.msc.service.ServiceBuilder<?> serviceBuilder, org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext, org.jboss.msc.inject.Injector<ManagedReferenceFactory> injector) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Description copied from class:InjectionSource
Get the value to use as the injection source. The value will be yield an injectable which is dereferenced once for every time the reference source is injected. The given binder service builder may be used to apply any dependencies for this binding (i.e. the source for the binding's value).- Specified by:
getResourceValue
in classInjectionSource
- Parameters:
context
- the resolution context to useserviceBuilder
- the builder for the binder servicephaseContext
- the deployment phase contextinjector
- the injector into which the value should be placed- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
- if an error occurs
-
getContextServiceRef
public String getContextServiceRef()
-
setContextServiceRef
public void setContextServiceRef(String contextServiceRef)
-
getHungTaskThreshold
public long getHungTaskThreshold()
-
setHungTaskThreshold
public void setHungTaskThreshold(long hungTaskThreshold)
-
getMaxAsync
public int getMaxAsync()
-
setMaxAsync
public void setMaxAsync(int maxAsync)
-
getHungTaskTerminationPeriod
public int getHungTaskTerminationPeriod()
-
setHungTaskTerminationPeriod
public void setHungTaskTerminationPeriod(int hungTaskTerminationPeriod)
-
isLongRunningTasks
public boolean isLongRunningTasks()
-
setLongRunningTasks
public void setLongRunningTasks(boolean longRunningTasks)
-
getKeepAliveTime
public long getKeepAliveTime()
-
setKeepAliveTime
public void setKeepAliveTime(long keepAliveTime)
-
getKeepAliveTimeUnit
public TimeUnit getKeepAliveTimeUnit()
-
setKeepAliveTimeUnit
public void setKeepAliveTimeUnit(TimeUnit keepAliveTimeUnit)
-
getThreadLifeTime
public long getThreadLifeTime()
-
setThreadLifeTime
public void setThreadLifeTime(long threadLifeTime)
-
getRejectPolicy
public org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy getRejectPolicy()
-
setRejectPolicy
public void setRejectPolicy(org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy)
-
getThreadPriority
public int getThreadPriority()
-
setThreadPriority
public void setThreadPriority(int threadPriority)
-
-