Search in sources :

Example 1 with PersistentTimestampService

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);
}
Also used : DelegatingManagedTimestampService(com.palantir.atlasdb.timelock.paxos.DelegatingManagedTimestampService) TimestampBoundStore(com.palantir.timestamp.TimestampBoundStore) PaxosTimestampBoundStore(com.palantir.atlasdb.timelock.paxos.PaxosTimestampBoundStore) PaxosTimestampBoundStore(com.palantir.atlasdb.timelock.paxos.PaxosTimestampBoundStore) PersistentTimestampService(com.palantir.timestamp.PersistentTimestampService)

Aggregations

DelegatingManagedTimestampService (com.palantir.atlasdb.timelock.paxos.DelegatingManagedTimestampService)1 PaxosTimestampBoundStore (com.palantir.atlasdb.timelock.paxos.PaxosTimestampBoundStore)1 PersistentTimestampService (com.palantir.timestamp.PersistentTimestampService)1 TimestampBoundStore (com.palantir.timestamp.TimestampBoundStore)1