T - The type of the result of this future.public abstract class AbstractReadFlowFuture<T> extends SettableVTNFuture<T>
AbstractReadFlowFuture is a base class for future associated with
the read operation which fetches data flow information.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReadFlowFuture(TxContext ctx,
String tname)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkTenant()
Ensure that the target VTN is present.
|
protected String |
getTenantName()
Return the name of the target VTN.
|
protected TxContext |
getTxContext()
Return the context for the MD-SAL datastore transaction.
|
protected void |
setFailure(Throwable cause)
Set the cause of failure.
|
protected void |
setResult(T result)
Set the result of this future.
|
cancel, get, get, isCancelled, isDone, maskCancel, onFutureFailed, onFutureSucceeded, set, setException, setThread, unmaskCanceladdListener, done, getCause, getExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckedGet, checkedGetprotected AbstractReadFlowFuture(TxContext ctx, String tname) throws RpcException
ctx - A TxContext instance.tname - The name of the target VTN.RpcException - An error occurred.protected final TxContext getTxContext()
TxContext instance.protected final String getTenantName()
protected final boolean checkTenant()
This method set an exception as the result of this future
if false is returned.
true if the target VTN is present.
false otherwise.protected final void setResult(T result)
result - The result of this future.Copyright © 2018 OpenDaylight. All rights reserved.