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

net.snowflake.ingest.streaming.internal.ChannelsStatusResponse Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
/*
 * Copyright (c) 2021 Snowflake Computing Inc. All rights reserved.
 */

package net.snowflake.ingest.streaming.internal;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Class used to serialize a response for the channels status endpoint */
class ChannelsStatusResponse extends StreamingIngestResponse {

  static class ChannelStatusResponseDTO {

    private Long statusCode;

    // Latest persisted offset token
    private String persistedOffsetToken;

    // Latest persisted client sequencer
    private Long persistedClientSequencer;

    // Latest persisted row sequencer
    private Long persistedRowSequencer;

    @JsonProperty("status_code")
    Long getStatusCode() {
      return statusCode;
    }

    @JsonProperty("status_code")
    void setStatusCode(Long statusCode) {
      this.statusCode = statusCode;
    }

    @JsonProperty("persisted_row_sequencer")
    Long getPersistedRowSequencer() {
      return persistedRowSequencer;
    }

    @JsonProperty("persisted_row_sequencer")
    void setPersistedRowSequencer(Long persistedRowSequencer) {
      this.persistedRowSequencer = persistedRowSequencer;
    }

    @JsonProperty("persisted_client_sequencer")
    Long getPersistedClientSequencer() {
      return persistedClientSequencer;
    }

    @JsonProperty("persisted_client_sequencer")
    void setPersistedClientSequencer(Long persistedClientSequencer) {
      this.persistedClientSequencer = persistedClientSequencer;
    }

    @JsonProperty("persisted_offset_token")
    String getPersistedOffsetToken() {
      return persistedOffsetToken;
    }

    @JsonProperty("persisted_offset_token")
    void setPersistedOffsetToken(String persistedOffsetToken) {
      this.persistedOffsetToken = persistedOffsetToken;
    }
  }

  // Channel array to return
  private List channels;
  private Long statusCode;
  private String message;

  @JsonProperty("status_code")
  void setStatusCode(Long statusCode) {
    this.statusCode = statusCode;
  }

  @JsonProperty("status_code")
  @Override
  Long getStatusCode() {
    return this.statusCode;
  }

  @JsonProperty("message")
  void setMessage(String message) {
    this.message = message;
  }

  @JsonProperty("message")
  String getMessage() {
    return this.message;
  }

  @JsonProperty("channels")
  void setChannels(List channels) {
    this.channels = channels;
  }

  @JsonProperty("channels")
  List getChannels() {
    return channels;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy