use of com.palantir.timestamp.PersistentTimestampService in project atlasdb by palantir.
the class PaxosTimestampCreator method createManagedPaxosTimestampService.
private ManagedTimestampService createManagedPaxosTimestampService(PaxosProposer proposer, String client, List<PaxosAcceptor> acceptors, List<PaxosLearner> learners) {
// TODO (jkong): live reload ping
TimestampBoundStore boundStore = instrument(TimestampBoundStore.class, new PaxosTimestampBoundStore(proposer, paxosResource.getPaxosLearner(client), ImmutableList.copyOf(acceptors), ImmutableList.copyOf(learners), paxosRuntime.get().maximumWaitBeforeProposalMs()), client);
PersistentTimestampService persistentTimestampService = PersistentTimestampServiceImpl.create(boundStore);
return new DelegatingManagedTimestampService(persistentTimestampService, persistentTimestampService);
}
Aggregations