@Beta
public interface PiPipeconfService
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
bindToDevice(PiPipeconfId pipeconfId,
DeviceId deviceId)
Binds the given pipeconf to the given infrastructure device.
|
Optional<PiPipeconf> |
getPipeconf(PiPipeconfId id)
Returns the pipeconf instance associated with the given identifier, if present.
|
Iterable<PiPipeconf> |
getPipeconfs()
Returns all pipeconfs registered.
|
Optional<PiPipeconfId> |
ofDevice(DeviceId deviceId)
Returns the pipeconf identifier currently associated with the given device identifier, if
present.
|
void |
register(PiPipeconf pipeconf)
Registers the given pipeconf.
|
void |
remove(PiPipeconfId pipeconfId)
Unregisters the Pipeconf identified by the given PiPipeconfId.
|
void register(PiPipeconf pipeconf) throws IllegalStateException
pipeconf - a pipeconfIllegalStateException - if the same pipeconf identifier is already registered.void remove(PiPipeconfId pipeconfId) throws IllegalStateException
pipeconfId - a pipeconfIdIllegalStateException - if the same pipeconf identifier is already registered.Iterable<PiPipeconf> getPipeconfs()
Optional<PiPipeconf> getPipeconf(PiPipeconfId id)
id - a pipeconf identifierCompletableFuture<Boolean> bindToDevice(PiPipeconfId pipeconfId, DeviceId deviceId)
deviceId - a device identifierpipeconfId - a pipeconf identifierOptional<PiPipeconfId> ofDevice(DeviceId deviceId)
deviceId - device identifier