Class Engine

java.lang.Object
me.topchetoeu.j2s.runtime.Engine
All Implemented Interfaces:
EventLoop

public final class Engine extends Object implements EventLoop
  • Constructor Details

    • Engine

      public Engine()
  • Method Details

    • pushMsg

      public <T> Future<T> pushMsg(Supplier<T> runnable, boolean micro)
      Specified by:
      pushMsg in interface EventLoop
    • run

      public void run(boolean untilEmpty)
    • thread

      public Thread thread()
    • start

      public Thread start()
    • stop

      public void stop()
    • inLoopThread

      public boolean inLoopThread()
    • isRunning

      public boolean isRunning()