Class OpcuaSubscriptionHandle

java.lang.Object
org.apache.plc4x.java.spi.model.DefaultPlcSubscriptionHandle
org.apache.plc4x.java.opcua.protocol.OpcuaSubscriptionHandle
All Implemented Interfaces:
PlcSubscriptionHandle

public class OpcuaSubscriptionHandle extends DefaultPlcSubscriptionHandle
  • Constructor Details

  • Method Details

    • startSubscriber

      public void startSubscriber()
      Main subscriber loop. For subscription we still need to send a request the server on every cycle. Which includes a request for an update of the previsouly agreed upon list of tags. The server will respond at most once every cycle.
    • stopSubscriber

      public void stopSubscriber()
      Stop the subscriber either on disconnect or on error
    • register

      Registers a new Consumer, this allows multiple PLC4X consumers to use the same subscription.
      Specified by:
      register in interface PlcSubscriptionHandle
      Overrides:
      register in class DefaultPlcSubscriptionHandle
      Parameters:
      consumer - - Consumer to be used to send any returned values.
      Returns:
      PlcConsumerRegistration - return the important information back to the client.