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
  • Constructor Details

    • QueryChannelFuture

      public QueryChannelFuture(io.netty.channel.ChannelFuture future, T defaultResult)
  • Method Details

    • joinThread

      public void joinThread()
      Description copied from interface: QueryFuture
      Force to wait current thread until the task finished
      Specified by:
      joinThread in interface QueryFuture<T>
    • joinThread

      public void joinThread(long timeout)
      Description copied from interface: QueryFuture
      Force to wait current thread until the task finished, will ignore if its too long specified by timeout
      Specified by:
      joinThread in interface QueryFuture<T>
      Parameters:
      timeout -
    • operationComplete

      public void operationComplete(io.netty.channel.ChannelFuture arg0) throws Exception
      Specified by:
      operationComplete in interface io.netty.util.concurrent.GenericFutureListener<T>
      Throws:
      Exception