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

com.palantir.atlasdb.timelock.paxos.api.NamespaceLeadershipTakeoverService Maven / Gradle / Ivy

There is a newer version: 0.1152.0
Show newest version
package com.palantir.atlasdb.timelock.paxos.api;

import com.palantir.conjure.java.lib.internal.ClientEndpoint;
import com.palantir.logsafe.Safe;
import com.palantir.tokens.auth.AuthHeader;
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.PathParam;
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 NamespaceLeadershipTakeoverService {
    @POST
    @Path("tl/paxos/takeover/{namespace}")
    @ClientEndpoint(method = "POST", path = "/tl/paxos/takeover/{namespace}")
    boolean takeover(
            @HeaderParam("Authorization") AuthHeader authHeader, @Safe @PathParam("namespace") String namespace);

    @POST
    @Path("tl/paxos/takeoverNamespaces")
    @ClientEndpoint(method = "POST", path = "/tl/paxos/takeoverNamespaces")
    Set takeoverNamespaces(@HeaderParam("Authorization") AuthHeader authHeader, @Safe Set namespaces);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy