frostfs-sdk-java/models/src/main/java/info/FrostFS/sdk/dto/MetaHeader.java
Bruk Ori ca7ba79817 [#XX] add client environment
add client cut
code cleanup
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
2024-07-22 19:13:52 +03:00

41 lines
790 B
Java

package info.FrostFS.sdk.dto;
public class MetaHeader {
private Version version;
private int epoch;
private int ttl;
public MetaHeader(Version version, int epoch, int ttl) {
this.version = version;
this.epoch = epoch;
this.ttl = ttl;
}
public static MetaHeader getDefault() {
return new MetaHeader(new Version(2, 13), 0, 2);
}
public Version getVersion() {
return version;
}
public void setVersion(Version version) {
this.version = version;
}
public int getEpoch() {
return epoch;
}
public void setEpoch(int epoch) {
this.epoch = epoch;
}
public int getTtl() {
return ttl;
}
public void setTtl(int ttl) {
this.ttl = ttl;
}
}