public final class BarrierUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> |
chainBarrier(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> input,
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef nodeRef,
FlowCapableTransactionService transactionService,
com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<T>,org.opendaylight.yangtools.yang.common.RpcResult<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<T>> compositeTransform)
Chain a barrier message - regardless of previous result and use given
Function to combine
original result and barrier result. |
static SendBarrierInput |
createSendBarrierInput(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef nodeRef)
Creates barrier input.
|
public static <T> com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> chainBarrier(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<T>> input, org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef nodeRef, FlowCapableTransactionService transactionService, com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<T>,org.opendaylight.yangtools.yang.common.RpcResult<Void>>,org.opendaylight.yangtools.yang.common.RpcResult<T>> compositeTransform)
Function
to combine
original result and barrier result.T
- type of input futureinput
- future to chain barrier tonodeRef
- target devicetransactionService
- barrier servicecompositeTransform
- composite transformpublic static SendBarrierInput createSendBarrierInput(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef nodeRef)
nodeRef
- rpc routing contextFlowCapableTransactionService.sendBarrier(SendBarrierInput)
Copyright © 2018 OpenDaylight. All rights reserved.