Class SecureExecutorServiceWrapper<D extends java.util.concurrent.ExecutorService>

java.lang.Object
ch.raffael.meldioc.util.concurrent.SecureExecutorServiceWrapper<D>
All Implemented Interfaces:
java.util.concurrent.Executor, java.util.concurrent.ExecutorService
Direct Known Subclasses:
DecoratingExecutorService, TaskDecoratingExecutorService

public abstract class SecureExecutorServiceWrapper<D extends java.util.concurrent.ExecutorService>
extends java.lang.Object
implements java.util.concurrent.ExecutorService
TODO JavaDoc
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected D delegate  
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected SecureExecutorServiceWrapper​(D delegate)  
  • Method Summary

    Modifier and Type Method Description
    boolean awaitTermination​(long timeout, java.util.concurrent.TimeUnit unit)  
    boolean isShutdown()  
    boolean isTerminated()  
    void shutdown()  
    java.util.List<java.lang.Runnable> shutdownNow()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.concurrent.Executor

    execute

    Methods inherited from interface java.util.concurrent.ExecutorService

    invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
  • Field Details

    • delegate

      protected final D extends java.util.concurrent.ExecutorService delegate
  • Constructor Details

    • SecureExecutorServiceWrapper

      protected SecureExecutorServiceWrapper​(D delegate)
  • Method Details

    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface java.util.concurrent.ExecutorService
    • shutdownNow

      public java.util.List<java.lang.Runnable> shutdownNow()
      Specified by:
      shutdownNow in interface java.util.concurrent.ExecutorService
    • isShutdown

      public boolean isShutdown()
      Specified by:
      isShutdown in interface java.util.concurrent.ExecutorService
    • isTerminated

      public boolean isTerminated()
      Specified by:
      isTerminated in interface java.util.concurrent.ExecutorService
    • awaitTermination

      public boolean awaitTermination​(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
      Specified by:
      awaitTermination in interface java.util.concurrent.ExecutorService
      Throws:
      java.lang.InterruptedException