All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.palantir.atlasdb.timelock.api.MultiClientConjureTimelockService Maven / Gradle / Ivy

There is a newer version: 0.1152.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy