Package septogeddon.pluginquery
Class QueryChannelFuture<T>
java.lang.Object
septogeddon.pluginquery.QueryFutureAdapter<T>
septogeddon.pluginquery.QueryChannelFuture<T>
- All Implemented Interfaces:
io.netty.channel.ChannelFutureListener,io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>,EventListener,QueryFuture<T>
public class QueryChannelFuture<T>
extends QueryFutureAdapter<T>
implements io.netty.channel.ChannelFutureListener
-
Field Summary
Fields inherited from class septogeddon.pluginquery.QueryFutureAdapter
cause, done, resultFields inherited from interface io.netty.channel.ChannelFutureListener
CLOSE, CLOSE_ON_FAILURE, FIRE_EXCEPTION_ON_FAILURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidForce to wait current thread until the task finishedvoidjoinThread(long timeout) Force to wait current thread until the task finished, will ignore if its too long specified by timeoutvoidoperationComplete(io.netty.channel.ChannelFuture arg0) Methods inherited from class septogeddon.pluginquery.QueryFutureAdapter
addListener, complete, completeExceptionally, fireEvent, getCause, getResult, isDone, isSuccess, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface septogeddon.pluginquery.api.QueryFuture
printStackTrace, thenAccept
-
Constructor Details
-
QueryChannelFuture
-
-
Method Details
-
joinThread
public void joinThread()Description copied from interface:QueryFutureForce to wait current thread until the task finished- Specified by:
joinThreadin interfaceQueryFuture<T>
-
joinThread
public void joinThread(long timeout) Description copied from interface:QueryFutureForce to wait current thread until the task finished, will ignore if its too long specified by timeout- Specified by:
joinThreadin interfaceQueryFuture<T>- Parameters:
timeout-
-
operationComplete
-