mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Add dataStoreSize field to Chronicle Map's global mutable state
This commit is contained in:
@@ -18,6 +18,8 @@ package net.openhft.chronicle.hash;
|
||||
|
||||
import net.openhft.chronicle.bytes.Byteable;
|
||||
import net.openhft.chronicle.values.Group;
|
||||
import net.openhft.chronicle.values.Range;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
|
||||
/**
|
||||
* <h1>This interface is a private API, don't use in client code</h1>
|
||||
@@ -28,17 +30,27 @@ public interface VanillaGlobalMutableState extends Byteable {
|
||||
|
||||
@Group(1)
|
||||
int getAllocatedExtraTierBulks();
|
||||
void setAllocatedExtraTierBulks(int allocatedExtraTierBulks);
|
||||
void setAllocatedExtraTierBulks(@Range(min = 0, max = 16777215) int allocatedExtraTierBulks);
|
||||
|
||||
@Group(2)
|
||||
long getFirstFreeTierIndex();
|
||||
void setFirstFreeTierIndex(long firstFreeTierIndex);
|
||||
void setFirstFreeTierIndex(@Range(min = 0, max = 1099511627775L) long firstFreeTierIndex);
|
||||
|
||||
@Group(3)
|
||||
long getExtraTiersInUse();
|
||||
void setExtraTiersInUse(long extraTiersInUse);
|
||||
void setExtraTiersInUse(@Range(min = 0, max = 1099511627775L) long extraTiersInUse);
|
||||
|
||||
@Group(4)
|
||||
long getSegmentHeadersOffset();
|
||||
void setSegmentHeadersOffset(long segmentHeadersOffset);
|
||||
void setSegmentHeadersOffset(@Range(min = 0, max = 4294967295L) long segmentHeadersOffset);
|
||||
|
||||
@Group(5)
|
||||
long getDataStoreSize();
|
||||
void setDataStoreSize(@Range(min = 0, max = Long.MAX_VALUE) long dataStoreSize);
|
||||
long addDataStoreSize(long addition);
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.setProperty("chronicle.values.dumpCode", "true");
|
||||
Values.nativeClassFor(VanillaGlobalMutableState.class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user