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
TheResourceDefinitionInjectionSourceforManagedScheduledExecutorDefinition.- 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 StringCONTEXT_PROPstatic StringHUNG_TASK_THRESHOLD_PROPstatic StringMAX_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 StringgetContextServiceRef()intgetHungTaskTerminationPeriod()longgetHungTaskThreshold()longgetKeepAliveTime()TimeUnitgetKeepAliveTimeUnit()intgetMaxAsync()org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicygetRejectPolicy()voidgetResourceValue(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.longgetThreadLifeTime()intgetThreadPriority()booleanisLongRunningTasks()voidsetContextServiceRef(String contextServiceRef)voidsetHungTaskTerminationPeriod(int hungTaskTerminationPeriod)voidsetHungTaskThreshold(long hungTaskThreshold)voidsetKeepAliveTime(long keepAliveTime)voidsetKeepAliveTimeUnit(TimeUnit keepAliveTimeUnit)voidsetLongRunningTasks(boolean longRunningTasks)voidsetMaxAsync(int maxAsync)voidsetRejectPolicy(org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy)voidsetThreadLifeTime(long threadLifeTime)voidsetThreadPriority(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:InjectionSourceGet 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:
getResourceValuein 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)
-
-