Class DefaultExecutorService

    • Field Detail

      • isShutdown

        protected final AtomicBoolean isShutdown
        Deprecated.
      • factory

        protected final org.infinispan.commands.CommandsFactory factory
        Deprecated.
      • marshaller

        protected final Marshaller marshaller
        Deprecated.
      • localExecutorService

        protected final ExecutorService localExecutorService
        Deprecated.
      • cancellationService

        protected final org.infinispan.commands.CancellationService cancellationService
        Deprecated.
      • takeExecutorOwnership

        protected final boolean takeExecutorOwnership
        Deprecated.
    • Constructor Detail

      • DefaultExecutorService

        public DefaultExecutorService​(Cache<?,​?> masterCacheNode)
        Deprecated.
        Creates a new DefaultExecutorService given a master cache node for local task execution. All distributed task executions will be initiated from this Infinispan cache node
        Parameters:
        masterCacheNode - Cache node initiating distributed task
      • DefaultExecutorService

        public DefaultExecutorService​(Cache<?,​?> masterCacheNode,
                                      ExecutorService localExecutorService)
        Deprecated.
        Creates a new DefaultExecutorService given a master cache node and an ExecutorService for parallel execution of tasks ran on this node. All distributed task executions will be initiated from this Infinispan cache node.

        Note that DefaultExecutorService will not shutdown client supplied localExecutorService once this DefaultExecutorService is shutdown. Lifecycle management of a supplied ExecutorService is left to the client Also note that client supplied ExecutorService should not execute tasks in the caller's thread ( i.e rejectionHandler of ThreadPoolExecutor configured with {link ThreadPoolExecutor.CallerRunsPolicy)

        Parameters:
        masterCacheNode - Cache node initiating distributed task
        localExecutorService - ExecutorService to run local tasks
      • DefaultExecutorService

        public DefaultExecutorService​(Cache<?,​?> masterCacheNode,
                                      ExecutorService localExecutorService,
                                      boolean takeExecutorOwnership)
        Deprecated.
        Creates a new DefaultExecutorService given a master cache node and an ExecutorService for parallel execution of task ran on this node. All distributed task executions will be initiated from this Infinispan cache node.
        Parameters:
        masterCacheNode - Cache node initiating distributed task
        localExecutorService - ExecutorService to run local tasks
        takeExecutorOwnership - if true ExecutorService.shutdown() and ExecutorService.shutdownNow() method will shutdown localExecutorService as well