@Beta public interface PiPipelineProgrammable extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
Optional<PiPipeconf> |
getDefaultPipeconf()
Returns the default pipeconf for this device, to be used when any other
pipeconf is not available.
|
boolean |
isPipeconfSet(PiPipeconf pipeconf)
Returns true if the device is configured with the given pipeconf, false
otherwise.
|
CompletableFuture<Boolean> |
setPipeconf(PiPipeconf pipeconf)
Writes the given pipeconf to the device, returns a completable future
with true is the operations was successful, false otherwise.
|
handler, setHandler
CompletableFuture<Boolean> setPipeconf(PiPipeconf pipeconf)
After the future has been completed, the device is expected to process data plane packets according to the written pipeconf.
pipeconf
- pipeconfboolean isPipeconfSet(PiPipeconf pipeconf)
This method is expected to always return true after successfully calling
setPipeconf(PiPipeconf)
with the given pipeconf.
pipeconf
- pipeconfOptional<PiPipeconf> getDefaultPipeconf()