T - The type of the object to be returned.public interface VTNFuture<T> extends com.google.common.util.concurrent.CheckedFuture<T,VTNException>
| Modifier and Type | Method and Description |
|---|---|
default T |
checkedGet()
Wait for the computation to complete, and then return the result.
|
default T |
checkedGet(long timeout,
TimeUnit unit)
Wait for the computation to complete within the given timeout, and then
return the result.
|
default T checkedGet() throws VTNException
An exception will be always wrapped by a VTNException.
checkedGet in interface com.google.common.util.concurrent.CheckedFuture<T,VTNException>VTNException - An error occurred.default T checkedGet(long timeout, TimeUnit unit) throws VTNException
An exception will be always wrapped by a VTNException,
including TimeoutException.
checkedGet in interface com.google.common.util.concurrent.CheckedFuture<T,VTNException>timeout - The maximum time to wait.unit - The time unit of timeout argument.VTNException - An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.