Class ConcurrentRuntime

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy

    @Service
    @Singleton
    public class ConcurrentRuntime
    extends Object
    implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy
    This class provides API to create various Concurrency Utilities objects
    • Method Detail

      • getRuntime

        public static ConcurrentRuntime getRuntime()
        Returns the ConcurrentRuntime instance. It follows singleton pattern and only one instance exists at any point of time. External entities need to call this method to get ConcurrentRuntime instance
        Returns:
        ConcurrentRuntime instance
      • getContextService

        public org.glassfish.enterprise.concurrent.ContextServiceImpl getContextService​(org.glassfish.resourcebase.resources.api.ResourceInfo resource,
                                                                                        ContextServiceConfig config)
      • shutdownContextService

        public void shutdownContextService​(String jndiName)
      • getManagedExecutorService

        public org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl getManagedExecutorService​(org.glassfish.resourcebase.resources.api.ResourceInfo resource,
                                                                                                        ManagedExecutorServiceConfig config)
      • shutdownManagedExecutorService

        public void shutdownManagedExecutorService​(String jndiName)
      • getManagedScheduledExecutorService

        public org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceImpl getManagedScheduledExecutorService​(org.glassfish.resourcebase.resources.api.ResourceInfo resource,
                                                                                                                          ManagedScheduledExecutorServiceConfig config)
      • shutdownScheduledManagedExecutorService

        public void shutdownScheduledManagedExecutorService​(String jndiName)
      • getManagedThreadFactory

        public org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl getManagedThreadFactory​(org.glassfish.resourcebase.resources.api.ResourceInfo resource,
                                                                                                    ManagedThreadFactoryConfig config)
      • shutdownManagedThreadFactory

        public void shutdownManagedThreadFactory​(String jndiName)
      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • preDestroy

        public void preDestroy()
        Specified by:
        preDestroy in interface org.glassfish.hk2.api.PreDestroy