mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
17 lines
571 B
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;
|
|
}
|
|
}
|