chrisdutz commented on issue #2335:
URL: https://github.com/apache/plc4x/issues/2335#issuecomment-3511906763

   I fully agree and I'm happy you brought it up as I just came across this 
yesterday.
   Do you think adding variant with a Duration would be enough?
   
   ```
           /**
            * Adds a new tag to the to be constructed request which should be 
updated as soon as
            * a value changes in the PLC.
            *
            * @param name       alias of the tag.
            * @param minInterval Minimum interval for updates (Limits the 
number of events for high frequency changes).
            * @param tagAddress tag address string for accessing the tag.
            * @param consumer   consumer for receiving update events for a 
given tag only.
            * @return builder.
            */
           PlcSubscriptionRequest.Builder addChangeOfStateTagAddress(String 
name, String tagAddress, Duration minInterval, Consumer<PlcSubscriptionEvent> 
consumer);
   
   ```
   This was just one of the 4 methods involved, but I hope you get the idea.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to