use of org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionResponse in project plc4x by apache.
the class SimulatedConnection method unsubscribe.
@Override
public CompletableFuture<PlcUnsubscriptionResponse> unsubscribe(PlcUnsubscriptionRequest unsubscriptionRequest) {
LOGGER.info("unsubscribing {}", unsubscriptionRequest);
device.removeHandles(unsubscriptionRequest.getSubscriptionHandles());
PlcUnsubscriptionResponse response = new DefaultPlcUnsubscriptionResponse(unsubscriptionRequest);
return CompletableFuture.completedFuture(response);
}
Aggregations