Search in sources :

Example 1 with PlcUnsubscriptionResponse

use of org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse in project plc4x by apache.

the class S7ProtocolLogic method unsubscribe.

@Override
public CompletableFuture<PlcUnsubscriptionResponse> unsubscribe(PlcUnsubscriptionRequest unsubscriptionRequest) {
    CompletableFuture<PlcUnsubscriptionResponse> future = new CompletableFuture<>();
    DefaultPlcUnsubscriptionRequest request = (DefaultPlcUnsubscriptionRequest) unsubscriptionRequest;
    return future;
}
Also used : PlcUnsubscriptionResponse(org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse) CompletableFuture(java.util.concurrent.CompletableFuture) DefaultPlcUnsubscriptionRequest(org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionRequest)

Example 2 with PlcUnsubscriptionResponse

use of org.apache.plc4x.java.api.messages.PlcUnsubscriptionResponse 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)2 CompletableFuture (java.util.concurrent.CompletableFuture)1 DefaultPlcUnsubscriptionRequest (org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionRequest)1 DefaultPlcUnsubscriptionResponse (org.apache.plc4x.java.spi.messages.DefaultPlcUnsubscriptionResponse)1