public interface PersistenceObjectRegistry extends PersistenceSwizzlingLookup, one.microstream.util.Cloneable<PersistenceObjectRegistry>
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
void |
clear()
Clears all entries except those that are essential for a correctly executed program (e.g.
|
void |
clearAll()
Clears all entries, including those that are essential for a correctly executed program (e.g.
|
PersistenceObjectRegistry |
Clone()
Useful for
PersistenceContextDispatcher. |
boolean |
consolidate()
Consolidate internal data structures, e.g.
|
boolean |
containsObjectId(long objectId) |
one.microstream.collections.types.XGettingTable<String,? extends one.microstream.hashing.HashStatistics> |
createHashStatistics() |
boolean |
ensureCapacity(long capacity)
Makes sure the internal storage structure is prepared to provide a
capacity() of at least
the passed capacity value. |
float |
hashDensity() |
int |
hashRange() |
boolean |
isEmpty() |
boolean |
isValid(long objectId,
Object object) |
<A extends PersistenceAcceptor> |
iterateEntries(A acceptor) |
Object |
lookupObject(long objectId) |
long |
lookupObjectId(Object object) |
long |
minimumCapacity() |
static DefaultObjectRegistry |
New() |
Object |
optionalRegisterObject(long objectId,
Object object) |
boolean |
registerConstant(long objectId,
Object constant) |
boolean |
registerObject(long objectId,
Object object) |
boolean |
setConfiguration(float hashDensity,
long minimumCapacity) |
boolean |
setHashDensity(float hashDensity) |
boolean |
setMinimumCapacity(long minimumCapacity) |
long |
size() |
void |
truncate()
Truncates all entries except those that are essential for a correctly executed program (e.g.
|
void |
truncateAll()
Truncates all entries, including those that are essential for a correctly executed program (e.g.
|
void |
validate(long objectId,
Object object) |
PersistenceObjectRegistry Clone()
PersistenceContextDispatcher.Clone in interface one.microstream.util.Cloneable<PersistenceObjectRegistry>Cloneable.long lookupObjectId(Object object)
lookupObjectId in interface PersistenceObjectIdLookupObject lookupObject(long objectId)
lookupObject in interface PersistenceObjectLookupboolean isValid(long objectId,
Object object)
void validate(long objectId,
Object object)
boolean containsObjectId(long objectId)
<A extends PersistenceAcceptor> A iterateEntries(A acceptor)
long size()
boolean isEmpty()
int hashRange()
float hashDensity()
long minimumCapacity()
long capacity()
boolean setHashDensity(float hashDensity)
boolean setMinimumCapacity(long minimumCapacity)
boolean setConfiguration(float hashDensity,
long minimumCapacity)
boolean ensureCapacity(long capacity)
capacity() of at least
the passed capacity value.capacity - the new minimum capacityboolean registerObject(long objectId,
Object object)
boolean registerConstant(long objectId,
Object constant)
boolean consolidate()
void clear()
NOTE:
This method is currently only intended to be used for testing since calling it can cause inconsistencies
if there still exist uncleared lazy references.
void clearAll()
NOTE:
This method is currently only intended to be used for testing since calling it can cause inconsistencies
if there still exist uncleared lazy references.
void truncate()
NOTE:
This method is currently only intended to be used for testing since calling it can cause inconsistencies
if there still exist uncleared lazy references.
void truncateAll()
NOTE:
This method is currently only intended to be used for testing since calling it can cause inconsistencies
if there still exist uncleared lazy references.
one.microstream.collections.types.XGettingTable<String,? extends one.microstream.hashing.HashStatistics> createHashStatistics()
static DefaultObjectRegistry New()
Copyright © 2022 MicroStream Software. All rights reserved.