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
      • shutdownContextService

        public void shutdownContextService​(String jndiName)
      • shutdownManagedExecutorService

        public void shutdownManagedExecutorService​(String jndiName)
      • shutdownScheduledManagedExecutorService

        public void shutdownScheduledManagedExecutorService​(String jndiName)
      • 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