Search in sources :

Example 1 with SystemClock

use of com.palantir.common.time.SystemClock in project atlasdb by palantir.

the class AsyncPuncherTest method setup.

@Before
public void setup() {
    PuncherStore puncherStore = InMemoryPuncherStore.create();
    Clock clock = new SystemClock();
    Puncher puncher = SimplePuncher.create(puncherStore, clock, Suppliers.ofInstance(TRANSACTION_TIMEOUT));
    timestampService = new InMemoryTimestampService();
    asyncPuncher = AsyncPuncher.create(puncher, ASYNC_PUNCHER_INTERVAL);
}
Also used : SystemClock(com.palantir.common.time.SystemClock) InMemoryTimestampService(com.palantir.timestamp.InMemoryTimestampService) Clock(com.palantir.common.time.Clock) SystemClock(com.palantir.common.time.SystemClock) Before(org.junit.Before)

Aggregations

Clock (com.palantir.common.time.Clock)1 SystemClock (com.palantir.common.time.SystemClock)1 InMemoryTimestampService (com.palantir.timestamp.InMemoryTimestampService)1 Before (org.junit.Before)1