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

io.serialized.client.feed.GetSequenceNumberRequest Maven / Gradle / Ivy

package io.serialized.client.feed;

import java.util.UUID;

public class GetSequenceNumberRequest {

  public final String feedName;
  public final UUID tenantId;

  private GetSequenceNumberRequest(Builder builder) {
    this.feedName = builder.feedName;
    this.tenantId = builder.tenantId;
  }

  public boolean hasTenantId() {
    return tenantId != null;
  }

  public static class Builder {

    private String feedName = "_all";
    private UUID tenantId;

    public Builder withFeed(String feedName) {
      this.feedName = feedName;
      return this;
    }

    public Builder withTenantId(UUID tenantId) {
      this.tenantId = tenantId;
      return this;
    }

    public GetSequenceNumberRequest build() {
      return new GetSequenceNumberRequest(this);
    }

  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy