Class MultiKeySequentialExecutor.SequentialExecutor

java.lang.Object
org.teamapps.util.MultiKeySequentialExecutor.SequentialExecutor
All Implemented Interfaces:
java.util.concurrent.Executor
Enclosing class:
MultiKeySequentialExecutor<K>

public class MultiKeySequentialExecutor.SequentialExecutor
extends java.lang.Object
implements java.util.concurrent.Executor
  • Constructor Summary

    Constructors 
    Constructor Description
    SequentialExecutor()  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void execute​(java.lang.Runnable command)  
    java.util.concurrent.CompletableFuture<java.lang.Void> submit​(java.lang.Runnable runnable)  
    <V> java.util.concurrent.CompletableFuture<V> submit​(java.util.function.Supplier<V> task)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • execute

      public void execute​(java.lang.Runnable command)
      Specified by:
      execute in interface java.util.concurrent.Executor
    • submit

      public java.util.concurrent.CompletableFuture<java.lang.Void> submit​(java.lang.Runnable runnable)
    • submit

      public <V> java.util.concurrent.CompletableFuture<V> submit​(java.util.function.Supplier<V> task)
    • close

      public void close()