Class RequestFuture
java.lang.Object
com.zenith.util.RequestFuture
- Direct Known Subclasses:
InputRequestFuture,PathingRequestFuture
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) voidcomplete(boolean accepted) get()booleangetNow()static RequestFutureimmediateFuture(boolean accepted) booleanbooleanisDone()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Field Details
-
rejected
-
-
Constructor Details
-
RequestFuture
public RequestFuture()
-
-
Method Details
-
immediateFuture
-
complete
public void complete(boolean accepted) -
cancel
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<Boolean>
-
isDone
-
get
-
get
-
getNow
public boolean getNow()
-