| Constructor and Description |
|---|
FutureCallbackTask(Future<T> f,
com.google.common.util.concurrent.FutureCallback<? super T> cb,
Timer t)
Construct a new instance with specifying 10 as the number of pollings.
|
FutureCallbackTask(Future<T> f,
com.google.common.util.concurrent.FutureCallback<? super T> cb,
Timer t,
int npolls)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxPolls()
Return the maximum number of future pollings.
|
void |
run()
Wait for the completion of the future on a thread.
|
public FutureCallbackTask(Future<T> f, com.google.common.util.concurrent.FutureCallback<? super T> cb, Timer t)
f - A future to wait for completion.cb - A future callback to be invoked.t - A timer used for polling.public FutureCallbackTask(Future<T> f, com.google.common.util.concurrent.FutureCallback<? super T> cb, Timer t, int npolls)
f - A future to wait for completion.cb - A future callback to be invoked.t - A timer used for polling.npolls - The maximum number of pollings.Copyright © 2018 OpenDaylight. All rights reserved.