com.palantir.atlasdb.timelock.api.MultiClientConjureTimelockService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timelock-api-jersey Show documentation
Show all versions of timelock-api-jersey Show documentation
Palantir open source project
package com.palantir.atlasdb.timelock.api;
import com.palantir.conjure.java.lib.internal.ClientEndpoint;
import com.palantir.tokens.auth.AuthHeader;
import java.util.Map;
import java.util.Set;
import javax.annotation.processing.Generated;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("/")
@Generated("com.palantir.conjure.java.services.JerseyServiceGenerator")
public interface MultiClientConjureTimelockService {
/** Version of ConjureTimelockService#leaderTime endpoint for acquiring leaderTimes for a set of namespaces. */
@POST
@Path("tl/multi/lts")
@ClientEndpoint(method = "POST", path = "/tl/multi/lts")
LeaderTimes leaderTimes(@HeaderParam("Authorization") AuthHeader authHeader, Set namespaces);
/**
* Version of ConjureTimelockService#startTransactions that starts transactions for multiple namespaces.
*
* @deprecated This endpoint is deprecated. Please use {@link #startTransactionsForClients} to start transactions
* for multiple clients.
*/
@POST
@Path("tl/multi/sts")
@Deprecated
@ClientEndpoint(method = "POST", path = "/tl/multi/sts")
Map startTransactions(
@HeaderParam("Authorization") AuthHeader authHeader,
Map requests);
/**
* Version of ConjureTimelockService#getCommitTimestamps for acquiring commit timestamps for multiple namespaces.
*
* @deprecated This endpoint is deprecated. Please use {@link #getCommitTimestampsForClients} to get commit
* timestamps for multiple clients.
*/
@POST
@Path("tl/multi/gcts")
@Deprecated
@ClientEndpoint(method = "POST", path = "/tl/multi/gcts")
Map getCommitTimestamps(
@HeaderParam("Authorization") AuthHeader authHeader, Map requests);
/** Version of ConjureTimelockService#startTransactions that starts transactions for multiple namespaces. */
@POST
@Path("tl/multi/stsfc")
@ClientEndpoint(method = "POST", path = "/tl/multi/stsfc")
Map startTransactionsForClients(
@HeaderParam("Authorization") AuthHeader authHeader,
Map requests);
/**
* Version of ConjureTimelockService#getCommitTimestamps for acquiring commit timestamps for multiple namespaces.
*/
@POST
@Path("tl/multi/gctsfc")
@ClientEndpoint(method = "POST", path = "/tl/multi/gctsfc")
Map getCommitTimestampsForClients(
@HeaderParam("Authorization") AuthHeader authHeader, Map requests);
/** Version of unlockV2 to unlock locks across multiple namespaces. */
@POST
@Path("tl/multi/ul")
@ClientEndpoint(method = "POST", path = "/tl/multi/ul")
Map unlock(
@HeaderParam("Authorization") AuthHeader authHeader, Map requests);
}