Files
dhfs/dhfs-parent/objects/src/main/java/com/usatiuk/objects/JData.java

17 lines
571 B
Java

package com.usatiuk.objects;
import java.io.Serializable;
// TODO: This could be maybe moved to a separate module?
// The base class for JObject data
// Only one instance of this "exists" per key, the instance in the manager is canonical
// When committing a transaction, the instance is checked against it, if it isn't the same, a race occurred.
// It is immutable, its version is filled in by the allocator from the AllocVersionProvider
public interface JData extends Serializable {
JObjectKey key();
default int estimateSize() {
return 100;
}
}