Package org.apache.plc4x.java.api.model
Interface PlcSubscriptionHandle
-
public interface PlcSubscriptionHandle
When subscribing to remote resources, depending on the used protocol different data is used to identify a subscription. This interface is to be implemented in the individual Driver implementations to contain all information needed to pull or unsubscribe any form of subscription.For every subscribed item, a separate
PlcSubscriptionHandle
object is returned in order to allow fine granular un-subscriptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlcConsumerRegistration
register(Consumer<PlcSubscriptionEvent> consumer)
Registers a given consumer for the events emitted by the current subscription handle.
-
-
-
Method Detail
-
register
PlcConsumerRegistration register(Consumer<PlcSubscriptionEvent> consumer)
Registers a given consumer for the events emitted by the current subscription handle.- Parameters:
consumer
- consumer- Returns:
- consumer registration
-
-