Class AbstractInstructionExecutor
- java.lang.Object
-
- org.opendaylight.bgpcep.pcep.topology.spi.AbstractInstructionExecutor
-
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<Instruction>
public abstract class AbstractInstructionExecutor extends Object implements com.google.common.util.concurrent.FutureCallback<Instruction>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractInstructionExecutor(@NonNull SubmitInstructionInput input)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SubmitInstructionInput
getInput()
protected abstract com.google.common.util.concurrent.ListenableFuture<OperationResult>
invokeOperation()
void
onFailure(Throwable throwable)
void
onSuccess(Instruction insn)
static FailureCase
schedule(InstructionScheduler scheduler, AbstractInstructionExecutor fwd)
-
-
-
Constructor Detail
-
AbstractInstructionExecutor
protected AbstractInstructionExecutor(@NonNull SubmitInstructionInput input)
-
-
Method Detail
-
schedule
public static FailureCase schedule(InstructionScheduler scheduler, AbstractInstructionExecutor fwd)
-
getInput
public final SubmitInstructionInput getInput()
-
invokeOperation
protected abstract com.google.common.util.concurrent.ListenableFuture<OperationResult> invokeOperation()
-
onSuccess
public void onSuccess(Instruction insn)
- Specified by:
onSuccess
in interfacecom.google.common.util.concurrent.FutureCallback<Instruction>
-
onFailure
public void onFailure(Throwable throwable)
- Specified by:
onFailure
in interfacecom.google.common.util.concurrent.FutureCallback<Instruction>
-
-