Interface DeviceClockService


  • public interface DeviceClockService
    Interface for a logical clock service that vends per device timestamps.
    • Method Detail

      • isTimestampAvailable

        boolean isTimestampAvailable​(DeviceId deviceId)
        Checks if this service can issue Timestamp for specified device.
        Parameters:
        deviceId - device identifier.
        Returns:
        true if timestamp can be issued for specified device
      • getTimestamp

        Timestamp getTimestamp​(DeviceId deviceId)
        Returns a new timestamp for the specified deviceId.
        Parameters:
        deviceId - device identifier.
        Returns:
        timestamp.