Class ManagedExecutorDefinitionInjectionSource

    • Constructor Detail

      • ManagedExecutorDefinitionInjectionSource

        public ManagedExecutorDefinitionInjectionSource​(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 class InjectionSource
        Parameters:
        context - the resolution context to use
        serviceBuilder - the builder for the binder service
        phaseContext - the deployment phase context
        injector - 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)
      • getQueueLength

        public int getQueueLength()
      • setQueueLength

        public void setQueueLength​(int queueLength)
      • 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)