Class ServerApplication

java.lang.Object
com.xpdustry.claj.server.ServerApplication
All Implemented Interfaces:
arc.Application, arc.util.Disposable

public class ServerApplication extends Object implements arc.Application
  • Field Details

    • graphics

      protected final arc.mock.MockGraphics graphics
    • listeners

      protected final arc.struct.Seq<arc.ApplicationListener> listeners
    • runnables

      protected final TaskQueue runnables
    • exceptionHandler

      protected final arc.func.Cons<Throwable> exceptionHandler
    • mainLoopThread

      protected final Thread mainLoopThread
    • timeout

      protected final int timeout
    • running

      protected boolean running
  • Constructor Details

    • ServerApplication

      public ServerApplication(arc.ApplicationListener listener, int nominalFps, arc.func.Cons<Throwable> exceptionHandler)
  • Method Details

    • getListeners

      public arc.struct.Seq<arc.ApplicationListener> getListeners()
      Specified by:
      getListeners in interface arc.Application
    • getType

      public arc.Application.ApplicationType getType()
      Specified by:
      getType in interface arc.Application
    • getMainThread

      public Thread getMainThread()
      Specified by:
      getMainThread in interface arc.Application
    • getClipboardText

      public String getClipboardText()
      Specified by:
      getClipboardText in interface arc.Application
    • setClipboardText

      public void setClipboardText(String text)
      Specified by:
      setClipboardText in interface arc.Application
    • post

      public void post(Runnable runnable)
      Specified by:
      post in interface arc.Application
    • exit

      public void exit()
      Specified by:
      exit in interface arc.Application
    • waitingTasks

      public int waitingTasks()
      Returns:
      an estimate number of task awaiting to be run. Used for monitoring.