com.ecwid.consul.transport.RawResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of consul-api Show documentation
Show all versions of consul-api Show documentation
Java client for Consul HTTP API (http://consul.io)
package com.ecwid.consul.transport;
/**
* @author Vasily Vasilkov ([email protected])
*/
public final class RawResponse {
private final int statusCode;
private final String statusMessage;
private final String content;
private final Long consulIndex;
private final Boolean consulKnownLeader;
private final Long consulLastContact;
public RawResponse(int statusCode, String statusMessage, String content, Long consulIndex, Boolean consulKnownLeader, Long consulLastContact) {
this.statusCode = statusCode;
this.statusMessage = statusMessage;
this.content = content;
this.consulIndex = consulIndex;
this.consulKnownLeader = consulKnownLeader;
this.consulLastContact = consulLastContact;
}
public int getStatusCode() {
return statusCode;
}
public String getStatusMessage() {
return statusMessage;
}
public String getContent() {
return content;
}
public Long getConsulIndex() {
return consulIndex;
}
public Boolean isConsulKnownLeader() {
return consulKnownLeader;
}
public Long getConsulLastContact() {
return consulLastContact;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy