Class OfficeFloorExecutorServiceFactory.OfficeFloorExecutorService

java.lang.Object
java.util.concurrent.AbstractExecutorService
net.officefloor.jaxrs.OfficeFloorExecutorServiceFactory.OfficeFloorExecutorService
All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedExecutorService, Executor, ExecutorService
Enclosing class:
OfficeFloorExecutorServiceFactory

public class OfficeFloorExecutorServiceFactory.OfficeFloorExecutorService extends AbstractExecutorService implements jakarta.enterprise.concurrent.ManagedExecutorService
  • Constructor Details

    • OfficeFloorExecutorService

      public OfficeFloorExecutorService()
  • Method Details

    • execute

      public void execute(Runnable command)
      Specified by:
      execute in interface Executor
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface ExecutorService
    • shutdownNow

      public List<Runnable> shutdownNow()
      Specified by:
      shutdownNow in interface ExecutorService
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface ExecutorService
    • awaitTermination

      public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
      Specified by:
      awaitTermination in interface ExecutorService
      Throws:
      InterruptedException
    • isTerminated

      public boolean isTerminated()
      Specified by:
      isTerminated in interface ExecutorService
    • completedFuture

      public <U> CompletableFuture<U> completedFuture(U value)
      Specified by:
      completedFuture in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • completedStage

      public <U> CompletionStage<U> completedStage(U value)
      Specified by:
      completedStage in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • copy

      public <T> CompletableFuture<T> copy(CompletableFuture<T> stage)
      Specified by:
      copy in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • copy

      public <T> CompletionStage<T> copy(CompletionStage<T> stage)
      Specified by:
      copy in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • failedFuture

      public <U> CompletableFuture<U> failedFuture(Throwable ex)
      Specified by:
      failedFuture in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • failedStage

      public <U> CompletionStage<U> failedStage(Throwable ex)
      Specified by:
      failedStage in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • getContextService

      public jakarta.enterprise.concurrent.ContextService getContextService()
      Specified by:
      getContextService in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • newIncompleteFuture

      public <U> CompletableFuture<U> newIncompleteFuture()
      Specified by:
      newIncompleteFuture in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • runAsync

      public CompletableFuture<Void> runAsync(Runnable runnable)
      Specified by:
      runAsync in interface jakarta.enterprise.concurrent.ManagedExecutorService
    • supplyAsync

      public <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier)
      Specified by:
      supplyAsync in interface jakarta.enterprise.concurrent.ManagedExecutorService