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

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

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

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ListMultimap;
import com.palantir.dialogue.Endpoint;
import com.palantir.dialogue.HttpMethod;
import com.palantir.dialogue.PathTemplate;
import com.palantir.dialogue.UrlBuilder;
import java.lang.Override;
import java.lang.String;
import java.util.Optional;
import java.util.Set;
import javax.annotation.processing.Generated;

@Generated("com.palantir.conjure.java.services.dialogue.DialogueEndpointsGenerator")
enum DialogueConjureTimelockEndpoints implements Endpoint {
    startTransactions {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("st")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "startTransactions";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    getFreshTimestamps {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("ts")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "getFreshTimestamps";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    getFreshTimestampsV2 {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("t2")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "getFreshTimestampsV2";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    getFreshTimestamp {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("ts1")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "getFreshTimestamp";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    leaderTime {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("lt")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "leaderTime";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    lock {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("l")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "lock";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    waitForLocks {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("wl")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "waitForLocks";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    refreshLocks {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("rl")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "refreshLocks";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    refreshLocksV2 {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("rl2")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "refreshLocksV2";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    unlock {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("ul")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "unlock";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    unlockV2 {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("ul2")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "unlockV2";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    /**
     * Batched endpoint for acquiring commit timestamps (a list of fresh timestamps) and the list of all lock watch
     * events since the last known version up to after the commit timestamps have been issued.
     */
    getCommitTimestamps {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("gct")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "getCommitTimestamps";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    },

    getCommitTimestamp {
        private final PathTemplate pathTemplate = PathTemplate.builder()
                .fixed("tl")
                .fixed("g1ct")
                .variable("namespace")
                .build();

        private final ImmutableSet tags = ImmutableSet.of("server-request-context");

        @Override
        public void renderPath(ListMultimap params, UrlBuilder url) {
            pathTemplate.fill(params, url);
        }

        @Override
        public HttpMethod httpMethod() {
            return HttpMethod.POST;
        }

        @Override
        public String serviceName() {
            return "ConjureTimelockService";
        }

        @Override
        public String endpointName() {
            return "getCommitTimestamp";
        }

        @Override
        public String version() {
            return VERSION;
        }

        @Override
        public Set tags() {
            return tags;
        }
    };

    private static final String VERSION = Optional.ofNullable(
                    DialogueConjureTimelockEndpoints.class.getPackage().getImplementationVersion())
            .orElse("0.0.0");
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy