Class VoidChannelGroupFuture

    • Constructor Detail

      • VoidChannelGroupFuture

        VoidChannelGroupFuture​(ChannelGroup group)
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Description copied from interface: ChannelGroupFuture
        Returns true if and only if all I/O operations associated with this future were successful without any failure.
        Specified by:
        isSuccess in interface ChannelGroupFuture
        Specified by:
        isSuccess in interface Future<java.lang.Void>
      • cause

        public ChannelGroupException cause()
        Description copied from interface: Future
        Returns the cause of the failed I/O operation if the I/O operation has failed.
        Specified by:
        cause in interface ChannelGroupFuture
        Specified by:
        cause in interface Future<java.lang.Void>
        Returns:
        the cause of the failure. null if succeeded or this future is not completed yet.
      • isPartialSuccess

        public boolean isPartialSuccess()
        Description copied from interface: ChannelGroupFuture
        Returns true if and only if the I/O operations associated with this future were partially successful with some failure.
        Specified by:
        isPartialSuccess in interface ChannelGroupFuture
      • isPartialFailure

        public boolean isPartialFailure()
        Description copied from interface: ChannelGroupFuture
        Returns true if and only if the I/O operations associated with this future have failed partially with some success.
        Specified by:
        isPartialFailure in interface ChannelGroupFuture
      • addListener

        public ChannelGroupFuture addListener​(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)
        Description copied from interface: Future
        Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
        Specified by:
        addListener in interface ChannelGroupFuture
        Specified by:
        addListener in interface Future<java.lang.Void>
      • addListeners

        public ChannelGroupFuture addListeners​(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
        Description copied from interface: Future
        Adds the specified listeners to this future. The specified listeners are notified when this future is done. If this future is already completed, the specified listeners are notified immediately.
        Specified by:
        addListeners in interface ChannelGroupFuture
        Specified by:
        addListeners in interface Future<java.lang.Void>
      • removeListener

        public ChannelGroupFuture removeListener​(GenericFutureListener<? extends Future<? super java.lang.Void>> listener)
        Description copied from interface: Future
        Removes the first occurrence of the specified listener from this future. The specified listener is no longer notified when this future is done. If the specified listener is not associated with this future, this method does nothing and returns silently.
        Specified by:
        removeListener in interface ChannelGroupFuture
        Specified by:
        removeListener in interface Future<java.lang.Void>
      • removeListeners

        public ChannelGroupFuture removeListeners​(GenericFutureListener<? extends Future<? super java.lang.Void>>... listeners)
        Description copied from interface: Future
        Removes the first occurrence for each of the listeners from this future. The specified listeners are no longer notified when this future is done. If the specified listeners are not associated with this future, this method does nothing and returns silently.
        Specified by:
        removeListeners in interface ChannelGroupFuture
        Specified by:
        removeListeners in interface Future<java.lang.Void>
      • sync

        public ChannelGroupFuture sync()
        Description copied from interface: Future
        Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
        Specified by:
        sync in interface ChannelGroupFuture
        Specified by:
        sync in interface Future<java.lang.Void>
      • isCancellable

        public boolean isCancellable()
        Description copied from interface: Future
        returns true if and only if the operation can be cancelled via Future.cancel(boolean).
        Specified by:
        isCancellable in interface Future<java.lang.Void>
      • await

        public boolean await​(long timeout,
                             java.util.concurrent.TimeUnit unit)
        Description copied from interface: Future
        Waits for this future to be completed within the specified time limit.
        Specified by:
        await in interface Future<java.lang.Void>
        Returns:
        true if and only if the future was completed within the specified time limit
      • await

        public boolean await​(long timeoutMillis)
        Description copied from interface: Future
        Waits for this future to be completed within the specified time limit.
        Specified by:
        await in interface Future<java.lang.Void>
        Returns:
        true if and only if the future was completed within the specified time limit
      • awaitUninterruptibly

        public boolean awaitUninterruptibly​(long timeout,
                                            java.util.concurrent.TimeUnit unit)
        Description copied from interface: Future
        Waits for this future to be completed within the specified time limit without interruption. This method catches an InterruptedException and discards it silently.
        Specified by:
        awaitUninterruptibly in interface Future<java.lang.Void>
        Returns:
        true if and only if the future was completed within the specified time limit
      • awaitUninterruptibly

        public boolean awaitUninterruptibly​(long timeoutMillis)
        Description copied from interface: Future
        Waits for this future to be completed within the specified time limit without interruption. This method catches an InterruptedException and discards it silently.
        Specified by:
        awaitUninterruptibly in interface Future<java.lang.Void>
        Returns:
        true if and only if the future was completed within the specified time limit
      • getNow

        public java.lang.Void getNow()
        Description copied from interface: Future
        Return the result without blocking. If the future is not done yet this will return null.

        As it is possible that a null value is used to mark the future as successful you also need to check if the future is really done with Future.isDone() and not rely on the returned null value.

        Specified by:
        getNow in interface Future<java.lang.Void>
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        If the cancellation was successful it will fail the future with a CancellationException.
        Specified by:
        cancel in interface Future<java.lang.Void>
        Specified by:
        cancel in interface java.util.concurrent.Future<java.lang.Void>
        Parameters:
        mayInterruptIfRunning - this value has no effect in this implementation.
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<java.lang.Void>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<java.lang.Void>
      • get

        public java.lang.Void get()
        Specified by:
        get in interface java.util.concurrent.Future<java.lang.Void>
      • get

        public java.lang.Void get​(long timeout,
                                  java.util.concurrent.TimeUnit unit)
        Specified by:
        get in interface java.util.concurrent.Future<java.lang.Void>
      • reject

        private static java.lang.RuntimeException reject()