frostfs-sdk-java/modelsV2/src/main/java/info/FrostFS/sdk/jdo/MetaHeader.java
2024-07-24 15:49:11 +03:00

41 lines
787 B
Java

package info.FrostFS.sdk.jdo;
public class MetaHeader {
public Version version;
public int epoch;
public 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;
}
}