Class CurrentThreadExecutor

java.lang.Object
io.ably.lib.util.CurrentThreadExecutor
All Implemented Interfaces:
CloseableExecutor, java.lang.AutoCloseable, java.util.concurrent.Executor

public class CurrentThreadExecutor
extends java.lang.Object
implements CloseableExecutor
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static CurrentThreadExecutor INSTANCE  
  • Constructor Summary

    Constructors 
    Constructor Description
    CurrentThreadExecutor()  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void execute​(java.lang.Runnable runnable)  

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • execute

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

      public void close() throws java.lang.Exception
      Specified by:
      close in interface java.lang.AutoCloseable
      Throws:
      java.lang.Exception