public final class GetVlanMapFuture extends SettableVTNFuture<VlanMap> implements com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VlanMap>>, RpcOutputGenerator<VlanMap,GetVlanMapOutput>
GetVlanMapFuture
describes a future associated with the task that
implements get-vlan-map RPC.Constructor and Description |
---|
GetVlanMapFuture(TxContext ctx,
GetVlanMapInput input)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
GetVlanMapOutput |
createOutput(VlanMap result)
Generate the output of the RPC request.
|
Class<GetVlanMapOutput> |
getOutputType()
Return a class which indicates the type of the RPC output.
|
void |
onFailure(Throwable cause)
Invoked when the read operation has failed.
|
void |
onSuccess(com.google.common.base.Optional<VlanMap> result)
Invoked when the read operation has completed successfully.
|
cancel, get, get, isCancelled, isDone, maskCancel, onFutureFailed, onFutureSucceeded, set, setException, setThread, unmaskCancel
addListener, done, getCause, getException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkedGet, checkedGet
public GetVlanMapFuture(TxContext ctx, GetVlanMapInput input) throws RpcException
ctx
- MD-SAL datastore transaction context.input
- A GetVlanMapInput
instance.RpcException
- The given input contains invalid value.public void onSuccess(@Nonnull com.google.common.base.Optional<VlanMap> result)
onSuccess
in interface com.google.common.util.concurrent.FutureCallback<com.google.common.base.Optional<VlanMap>>
result
- An Optional
instance that contains the
VLAN mapping.public void onFailure(Throwable cause)
public Class<GetVlanMapOutput> getOutputType()
getOutputType
in interface RpcOutputGenerator<VlanMap,GetVlanMapOutput>
public GetVlanMapOutput createOutput(VlanMap result)
createOutput
in interface RpcOutputGenerator<VlanMap,GetVlanMapOutput>
result
- The result of the RPC main procedure.Copyright © 2018 OpenDaylight. All rights reserved.