Search in sources :

Example 1 with DefaultPlcUnsubscriptionResponse

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);
}
Also used : PlcUnsubscriptionResponse(org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse) DefaultPlcUnsubscriptionResponse(org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionResponse) DefaultPlcUnsubscriptionResponse(org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionResponse)

Aggregations

PlcUnsubscriptionResponse (org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse)1 DefaultPlcUnsubscriptionResponse (org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionResponse)1