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

io.orchestrate.client.EventPath Maven / Gradle / Ivy

Go to download

A high performance, asynchronous Java client to query the Orchestrate.io service.

The newest version!
package io.orchestrate.client;

import com.fasterxml.jackson.annotation.*;
import lombok.NonNull;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class EventPath extends ItemPath {
    @JsonProperty
    private String type;
    @JsonProperty
    private Long timestamp;
    @JsonProperty
    private String ordinal;
    @JsonProperty
    private String ordinal_str;

    protected EventPath(
            @NonNull String collection,
            @NonNull String key,
            @NonNull String type,
            @NonNull Long timestamp) {
        super(collection, key, ItemKind.EVENT);

        this.type = type;
        this.timestamp = timestamp;
    }

    // Used for JSON serialization
    protected EventPath() {}

    public String getType() {
        return type;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public String getOrdinal() {
        return ordinal;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy