com.palantir.atlasdb.timelock.paxos.api.NamespaceLeadershipTakeoverService 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.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);
}