[New] Added PlcExecutionPolicy.unregister()
This commit is contained in:
parent
d898fb64df
commit
8f7a029dfd
|
@ -57,6 +57,11 @@ public abstract class PlcExecutionPolicy extends SimpleExecution
|
|||
this.registeredKeys.add(key);
|
||||
}
|
||||
|
||||
protected void unregister(PlcAddressKey key) {
|
||||
this.plcHandler.unregister(getPlcId(), key, this);
|
||||
this.registeredKeys.remove(key);
|
||||
}
|
||||
|
||||
protected void unregisterAll() {
|
||||
this.registeredKeys.forEach(k -> this.plcHandler.unregister(getPlcId(), k, this));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue