APISonar


org.agrona.concurrent.CachedEpochClock.time

> org > agrona > concurrent > CachedEpochClock > time
org APIs agrona APIs concurrent APIs CachedEpochClock APIs time APIs

Example 1
private final CachedEpochClock epochClock;

    private void state(final State newState)
    {
        timeOfLastActionMs = epochClock.time();
        //System.out.println(timeOfLastActionMs + ": " + state + " -> " + newState);
        state = newState;
        activeCorrelationId = NULL_VALUE;
    }
Example 2
private final CachedEpochClock epochClock;

    private int trackAction(final long correlationId)
    {
        timeOfLastActionMs = epochClock.time();
        activeCorrelationId = correlationId;
        return 1;
    }