Class SubscriptionClock


  • public class SubscriptionClock
    extends Subscription
    A clock event subscription
    • Constructor Detail

      • SubscriptionClock

        public SubscriptionClock​(long userdata,
                                 byte[] memory,
                                 int ptr)
        Creates a new clock event subscription instance.
        Parameters:
        userdata - the user data.
        memory - the memory from which to read the clock event subscription content.
        ptr - the start pointer in the memory.
    • Method Detail

      • getId

        public int getId()
        Gets the clock id.
        Returns:
        the clock id.
      • getPrecision

        public long getPrecision()
        Gets the timeout precision, i.e. the amount of time that the implementation may wait additionally to coalesce with other events.
        Returns:
        the timeout precision.
      • isAbsoluteTimeout

        public boolean isAbsoluteTimeout()
        Checks whether the timeout is absolute or relative.
        Returns:
        true if the timeout is absolute; false otherwise.
      • getTimeout

        public long getTimeout()
        Gets the timeout.
        Returns:
        the timeout.