Class WithinThreadExecutor

java.lang.Object
java.util.concurrent.AbstractExecutorService
org.infinispan.util.concurrent.WithinThreadExecutor
All Implemented Interfaces:
Executor, ExecutorService

public final class WithinThreadExecutor extends AbstractExecutorService
An executor that works within the current thread.
Since:
4.0
Author:
Manik Surtani (manik@jboss.org)
See Also:
  • Constructor Details

    • WithinThreadExecutor

      public WithinThreadExecutor()
  • Method Details

    • execute

      public void execute(Runnable command)
    • shutdown

      public void shutdown()
    • shutdownNow

      public List<Runnable> shutdownNow()
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException