Class ServerApplication
java.lang.Object
com.xpdustry.claj.server.ServerApplication
- All Implemented Interfaces:
arc.Application, arc.util.Disposable
-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.Application
arc.Application.ApplicationType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerApplication(arc.ApplicationListener listener, int nominalFps, arc.func.Cons<Throwable> exceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidexit()arc.struct.Seq<arc.ApplicationListener> arc.Application.ApplicationTypegetType()voidvoidsetClipboardText(String text) intMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arc.Application
addListener, defaultUpdate, dispose, getDnsServers, getJavaHeap, getNativeHeap, getVersion, isAndroid, isDesktop, isHeadless, isIOS, isMobile, isOnMainThread, isWeb, openFolder, openURI, removeListenerMethods inherited from interface arc.util.Disposable
isDisposed
-
Field Details
-
graphics
protected final arc.mock.MockGraphics graphics -
listeners
protected final arc.struct.Seq<arc.ApplicationListener> listeners -
runnables
-
exceptionHandler
-
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:
getListenersin interfacearc.Application
-
getType
public arc.Application.ApplicationType getType()- Specified by:
getTypein interfacearc.Application
-
getMainThread
- Specified by:
getMainThreadin interfacearc.Application
-
getClipboardText
- Specified by:
getClipboardTextin interfacearc.Application
-
setClipboardText
- Specified by:
setClipboardTextin interfacearc.Application
-
post
- Specified by:
postin interfacearc.Application
-
exit
public void exit()- Specified by:
exitin interfacearc.Application
-
waitingTasks
public int waitingTasks()- Returns:
- an estimate number of task awaiting to be run. Used for monitoring.
-