Top Fields Constructors Methods
io.netty.channel.group

pack-priv final Class VoidChannelGroupFuture

extends Object
implements ChannelGroupFuture
Class Inheritance
All Implemented Interfaces
io.netty.channel.group.ChannelGroupFuture, java.lang.Iterable, io.netty.util.concurrent.Future, java.util.concurrent.Future
Imports
io.netty.channel.Channel, .ChannelFuture, io.netty.util.concurrent.Future, .GenericFutureListener, java.util.Collections, .Iterator, java.util.concurrent.TimeUnit

Field Summary

Modifier and TypeField and Description
private static final Iterator<ChannelFuture>
private final ChannelGroup

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ChannelGroupFuture
addListener(GenericFutureListener<? extends Future<? super Void>> listener)

Implements io.netty.channel.group.ChannelGroupFuture.addListener.

Adds the specified listener to this future.
public ChannelGroupFuture
addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)

Implements io.netty.channel.group.ChannelGroupFuture.addListeners.

Adds the specified listeners to this future.
public ChannelGroupFuture
await()

Implements io.netty.channel.group.ChannelGroupFuture.await.

Waits for this future to be completed.
public boolean
await(long timeout, TimeUnit unit)

Implements io.netty.util.concurrent.Future.await.

Waits for this future to be completed within the specified time limit.
public boolean
await(long timeoutMillis)

Implements io.netty.util.concurrent.Future.await.

Waits for this future to be completed within the specified time limit.
public ChannelGroupFuture
awaitUninterruptibly()

Implements io.netty.channel.group.ChannelGroupFuture.awaitUninterruptibly.

Waits for this future to be completed without interruption.
public boolean
awaitUninterruptibly(long timeout, TimeUnit unit)

Implements io.netty.util.concurrent.Future.awaitUninterruptibly.

Waits for this future to be completed within the specified time limit without interruption.
public boolean
awaitUninterruptibly(long timeoutMillis)

Implements io.netty.util.concurrent.Future.awaitUninterruptibly.

Waits for this future to be completed within the specified time limit without interruption.
public boolean
cancel(boolean
this value has no effect in this implementation.
mayInterruptIfRunning
)

Implements io.netty.util.concurrent.Future.cancel.

Attempts to cancel execution of this task.
public ChannelGroupException
cause()

Implements io.netty.channel.group.ChannelGroupFuture.cause.

Returns the cause of the failed I/O operation if the I/O operation has failed.
public ChannelFuture
find(Channel channel)

Implements io.netty.channel.group.ChannelGroupFuture.find.

Returns the ChannelFuture of the individual I/O operation which is associated with the specified Channel.
public Void
get()

Implements java.util.concurrent.Future.get.

Waits if necessary for the computation to complete, and then retrieves its result.
public Void
get(long
the maximum time to wait
timeout
,
TimeUnit
the time unit of the timeout argument
unit
)

Implements java.util.concurrent.Future.get.

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
public Void
getNow()

Implements io.netty.util.concurrent.Future.getNow.

Return the result without blocking.
public ChannelGroup
group()

Implements io.netty.channel.group.ChannelGroupFuture.group.

Returns the ChannelGroup which is associated with this future.
public boolean
isCancellable()

Implements io.netty.util.concurrent.Future.isCancellable.

returns true if and only if the operation can be cancelled via cancel(boolean).
public boolean
isCancelled()

Implements java.util.concurrent.Future.isCancelled.

Returns true if this task was cancelled before it completed normally.
public boolean
isDone()

Implements java.util.concurrent.Future.isDone.

Returns true if this task completed.
public boolean
isPartialFailure()

Implements io.netty.channel.group.ChannelGroupFuture.isPartialFailure.

Returns true if and only if the I/O operations associated with this future have failed partially with some success.
public boolean
isPartialSuccess()

Implements io.netty.channel.group.ChannelGroupFuture.isPartialSuccess.

Returns true if and only if the I/O operations associated with this future were partially successful with some failure.
public boolean
isSuccess()

Implements io.netty.channel.group.ChannelGroupFuture.isSuccess.

Returns true if and only if all I/O operations associated with this future were successful without any failure.
public Iterator<ChannelFuture>
iterator()

Implements io.netty.channel.group.ChannelGroupFuture.iterator.

Returns the Iterator that enumerates all ChannelFutures which are associated with this future.
private static RuntimeException
public ChannelGroupFuture
removeListener(GenericFutureListener<? extends Future<? super Void>> listener)

Implements io.netty.channel.group.ChannelGroupFuture.removeListener.

Removes the first occurrence of the specified listener from this future.
public ChannelGroupFuture
removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)

Implements io.netty.channel.group.ChannelGroupFuture.removeListeners.

Removes the first occurrence for each of the listeners from this future.
public ChannelGroupFuture
sync()

Implements io.netty.channel.group.ChannelGroupFuture.sync.

Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
public ChannelGroupFuture
syncUninterruptibly()

Implements io.netty.channel.group.ChannelGroupFuture.syncUninterruptibly.

Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTYback to summary
private static final Iterator<ChannelFuture> EMPTY
groupback to summary
private final ChannelGroup group

Constructor Detail

VoidChannelGroupFutureback to summary
pack-priv VoidChannelGroupFuture(ChannelGroup group)

Method Detail

addListenerback to summary
public ChannelGroupFuture addListener(GenericFutureListener<? extends Future<? super Void>> listener)

Implements io.netty.channel.group.ChannelGroupFuture.addListener.

Doc from io.netty.util.concurrent.Future.addListener.

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.

Annotations
@Override
addListenersback to summary
public ChannelGroupFuture addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)

Implements io.netty.channel.group.ChannelGroupFuture.addListeners.

Doc from io.netty.util.concurrent.Future.addListeners.

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.

Annotations
@Override
awaitback to summary
public ChannelGroupFuture await()

Implements io.netty.channel.group.ChannelGroupFuture.await.

Doc from io.netty.util.concurrent.Future.await.

Waits for this future to be completed.

Annotations
@Override
awaitback to summary
public boolean await(long timeout, TimeUnit unit)

Implements io.netty.util.concurrent.Future.await.

Doc from io.netty.util.concurrent.Future.await.

Waits for this future to be completed within the specified time limit.

Returns:boolean

true if and only if the future was completed within the specified time limit

Annotations
@Override
awaitback to summary
public boolean await(long timeoutMillis)

Implements io.netty.util.concurrent.Future.await.

Doc from io.netty.util.concurrent.Future.await.

Waits for this future to be completed within the specified time limit.

Returns:boolean

true if and only if the future was completed within the specified time limit

Annotations
@Override
awaitUninterruptiblyback to summary
public ChannelGroupFuture awaitUninterruptibly()

Implements io.netty.channel.group.ChannelGroupFuture.awaitUninterruptibly.

Doc from io.netty.util.concurrent.Future.awaitUninterruptibly.

Waits for this future to be completed without interruption. This method catches an InterruptedException and discards it silently.

Annotations
@Override
awaitUninterruptiblyback to summary
public boolean awaitUninterruptibly(long timeout, TimeUnit unit)

Implements io.netty.util.concurrent.Future.awaitUninterruptibly.

Doc from io.netty.util.concurrent.Future.awaitUninterruptibly.

Waits for this future to be completed within the specified time limit without interruption. This method catches an InterruptedException and discards it silently.

Returns:boolean

true if and only if the future was completed within the specified time limit

Annotations
@Override
awaitUninterruptiblyback to summary
public boolean awaitUninterruptibly(long timeoutMillis)

Implements io.netty.util.concurrent.Future.awaitUninterruptibly.

Doc from io.netty.util.concurrent.Future.awaitUninterruptibly.

Waits for this future to be completed within the specified time limit without interruption. This method catches an InterruptedException and discards it silently.

Returns:boolean

true if and only if the future was completed within the specified time limit

Annotations
@Override
cancelback to summary
public boolean cancel(boolean mayInterruptIfRunning)

Implements io.netty.util.concurrent.Future.cancel.

Doc from io.netty.util.concurrent.Future.cancel.

Attempts to cancel execution of this task. This method has no effect if the task is already completed or cancelled, or could not be cancelled for some other reason. Otherwise, if this task has not started when cancel is called, this task should never run. If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task (when known by the implementation) is interrupted in an attempt to stop the task.

The return value from this method does not necessarily indicate whether the task is now cancelled; use isCancelled. If the cancellation was successful it will fail the future with a CancellationException.

Parameters
mayInterruptIfRunning:boolean

this value has no effect in this implementation.

Returns:boolean

Doc from java.util.concurrent.Future.cancel.

false if the task could not be cancelled, typically because it has already completed; true otherwise. If two or more threads cause a task to be cancelled, then at least one of them returns true. Implementations may provide stronger guarantees.

Annotations
@Override
causeback to summary
public ChannelGroupException cause()

Implements io.netty.channel.group.ChannelGroupFuture.cause.

Doc from io.netty.util.concurrent.Future.cause.

Returns the cause of the failed I/O operation if the I/O operation has failed.

Returns:ChannelGroupException

the cause of the failure. null if succeeded or this future is not completed yet.

Annotations
@Override
findback to summary
public ChannelFuture find(Channel channel)

Implements io.netty.channel.group.ChannelGroupFuture.find.

Doc from io.netty.channel.group.ChannelGroupFuture.find.

Returns the ChannelFuture of the individual I/O operation which is associated with the specified Channel.

Returns:ChannelFuture

the matching ChannelFuture if found. null otherwise.

Annotations
@Override
getback to summary
public Void get()

Implements java.util.concurrent.Future.get.

Doc from java.util.concurrent.Future.get.

Waits if necessary for the computation to complete, and then retrieves its result.

Returns:Void

the computed result

Annotations
@Override
getback to summary
public Void get(long timeout, TimeUnit unit)

Implements java.util.concurrent.Future.get.

Doc from java.util.concurrent.Future.get.

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

Parameters
timeout:long

the maximum time to wait

unit:TimeUnit

the time unit of the timeout argument

Returns:Void

the computed result

Annotations
@Override
getNowback to summary
public Void getNow()

Implements io.netty.util.concurrent.Future.getNow.

Doc from io.netty.util.concurrent.Future.getNow.

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 isDone() and not rely on the returned null value.

Annotations
@Override
groupback to summary
public ChannelGroup group()

Implements io.netty.channel.group.ChannelGroupFuture.group.

Doc from io.netty.channel.group.ChannelGroupFuture.group.

Returns the ChannelGroup which is associated with this future.

Annotations
@Override
isCancellableback to summary
public boolean isCancellable()

Implements io.netty.util.concurrent.Future.isCancellable.

Doc from io.netty.util.concurrent.Future.isCancellable.

returns true if and only if the operation can be cancelled via cancel(boolean).

Annotations
@Override
isCancelledback to summary
public boolean isCancelled()

Implements java.util.concurrent.Future.isCancelled.

Doc from java.util.concurrent.Future.isCancelled.

Returns true if this task was cancelled before it completed normally.

Returns:boolean

true if this task was cancelled before it completed

Annotations
@Override
isDoneback to summary
public boolean isDone()

Implements java.util.concurrent.Future.isDone.

Doc from java.util.concurrent.Future.isDone.

Returns true if this task completed. Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true.

Returns:boolean

true if this task completed

Annotations
@Override
isPartialFailureback to summary
public boolean isPartialFailure()

Implements io.netty.channel.group.ChannelGroupFuture.isPartialFailure.

Doc from io.netty.channel.group.ChannelGroupFuture.isPartialFailure.

Returns true if and only if the I/O operations associated with this future have failed partially with some success.

Annotations
@Override
isPartialSuccessback to summary
public boolean isPartialSuccess()

Implements io.netty.channel.group.ChannelGroupFuture.isPartialSuccess.

Doc from io.netty.channel.group.ChannelGroupFuture.isPartialSuccess.

Returns true if and only if the I/O operations associated with this future were partially successful with some failure.

Annotations
@Override
isSuccessback to summary
public boolean isSuccess()

Implements io.netty.channel.group.ChannelGroupFuture.isSuccess.

Doc from io.netty.channel.group.ChannelGroupFuture.isSuccess.

Returns true if and only if all I/O operations associated with this future were successful without any failure.

Annotations
@Override
iteratorback to summary
public Iterator<ChannelFuture> iterator()

Implements io.netty.channel.group.ChannelGroupFuture.iterator.

Doc from io.netty.channel.group.ChannelGroupFuture.iterator.

Returns the Iterator that enumerates all ChannelFutures which are associated with this future. Please note that the returned Iterator is is unmodifiable, which means a ChannelFuture cannot be removed from this future.

Returns:Iterator<ChannelFuture>

Doc from java.lang.Iterable.iterator.

an Iterator.

Annotations
@Override
rejectback to summary
private static RuntimeException reject()
removeListenerback to summary
public ChannelGroupFuture removeListener(GenericFutureListener<? extends Future<? super Void>> listener)

Implements io.netty.channel.group.ChannelGroupFuture.removeListener.

Doc from io.netty.util.concurrent.Future.removeListener.

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.

Annotations
@Override
removeListenersback to summary
public ChannelGroupFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)

Implements io.netty.channel.group.ChannelGroupFuture.removeListeners.

Doc from io.netty.util.concurrent.Future.removeListeners.

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.

Annotations
@Override
syncback to summary
public ChannelGroupFuture sync()

Implements io.netty.channel.group.ChannelGroupFuture.sync.

Doc from io.netty.util.concurrent.Future.sync.

Waits for this future until it is done, and rethrows the cause of the failure if this future failed.

Annotations
@Override
syncUninterruptiblyback to summary
public ChannelGroupFuture syncUninterruptibly()

Implements io.netty.channel.group.ChannelGroupFuture.syncUninterruptibly.

Doc from io.netty.util.concurrent.Future.syncUninterruptibly.

Waits for this future until it is done, and rethrows the cause of the failure if this future failed.

Annotations
@Override