Class TimeoutInvocationFactory.ExecutorResource

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
    Direct Known Subclasses:
    TimeoutInvocationFactory.SingleThreadExecutorResource
    Enclosing class:
    TimeoutInvocationFactory

    private abstract static class TimeoutInvocationFactory.ExecutorResource
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.ScheduledExecutorService executor  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutorResource​(java.util.concurrent.ScheduledExecutorService executor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      (package private) java.util.concurrent.ScheduledExecutorService get()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • executor

        protected final java.util.concurrent.ScheduledExecutorService executor
    • Constructor Detail

      • ExecutorResource

        ExecutorResource​(java.util.concurrent.ScheduledExecutorService executor)
    • Method Detail

      • get

        java.util.concurrent.ScheduledExecutorService get()
      • close

        public void close()
                   throws java.lang.Throwable
        Specified by:
        close in interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
        Throws:
        java.lang.Throwable