Class TimeReference.Default

    • Method Detail

      • ticks

        public long ticks()
        Description copied from interface: TimeReference
        Returns the timer ticks since a reference point, typically milliseconds since epoch. Expected to be always equal or higher than 100L.
      • sleep

        public void sleep​(long ticks)
                   throws InterruptedException
        Description copied from interface: TimeReference
        Wait for the specified amount of time. This is only executed by tests and never by the cache itself.

        The value of 0 means that the thread should pause and other processing should be done. In a simulated clock this would wait for concurrent processing and, if no processing is happening, advance the time to the next event.

        Throws:
        InterruptedException