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
The
ResourceDefinitionInjectionSource for ManagedScheduledExecutorDefinition.- Author:
- emmartins
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.ee.component.InjectionSource
InjectionSource.ResolutionContext -
Field Summary
FieldsFields inherited from class org.jboss.as.ee.resource.definition.ResourceDefinitionInjectionSource
jndiName, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlonglongintorg.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicyvoidgetResourceValue(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.longintbooleanvoidsetContextServiceRef(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 Details
-
CONTEXT_PROP
- See Also:
-
HUNG_TASK_THRESHOLD_PROP
- See Also:
-
MAX_ASYNC_PROP
- See Also:
-
-
Constructor Details
-
ManagedScheduledExecutorDefinitionInjectionSource
-
-
Method Details
-
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
-
setContextServiceRef
-
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
-
setKeepAliveTimeUnit
-
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)
-