Interface BinaryStorer
-
- All Superinterfaces:
PersistenceStorer,PersistenceStoring,Storer
- All Known Implementing Classes:
BinaryStorer.Default,BinaryStorer.Eager
public interface BinaryStorer extends PersistenceStorer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceBinaryStorer.Creatorstatic classBinaryStorer.DefaultDefault implementation that stores referenced instances only if required (i.e. if they have no OID assigned yet, therefore have not been stored yet, therefore require to be stored).static classBinaryStorer.EagerIdentical toBinaryStorer.Default, but stores every referenced instance eagerly.
For a more differentiated solution between the two simple, but extreme strategies, seePersistenceEagerStoringFieldEvaluator.static classBinaryStorer.Item-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceStorer
PersistenceStorer.CreationObserver
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static BinaryStorer.CreatorCreator(BinaryChannelCountProvider channelCountProvider, boolean switchByteOrder)longcurrentCapacity()PersistenceStorerensureCapacity(long desiredCapacity)longmaximumCapacity()PersistenceStorerreinitialize()PersistenceStorerreinitialize(long initialCapacity)-
Methods inherited from interface org.eclipse.serializer.persistence.types.PersistenceStoring
store, storeAll, storeAll
-
Methods inherited from interface org.eclipse.serializer.persistence.types.Storer
clear, commit, isEmpty, registerCommitListener, registerRegistrationListener, size, skip, skipMapped, skipNulled
-
-
-
-
Method Detail
-
reinitialize
PersistenceStorer reinitialize()
- Specified by:
reinitializein interfacePersistenceStorer- Specified by:
reinitializein interfaceStorer
-
reinitialize
PersistenceStorer reinitialize(long initialCapacity)
- Specified by:
reinitializein interfacePersistenceStorer- Specified by:
reinitializein interfaceStorer
-
ensureCapacity
PersistenceStorer ensureCapacity(long desiredCapacity)
- Specified by:
ensureCapacityin interfacePersistenceStorer- Specified by:
ensureCapacityin interfaceStorer
-
currentCapacity
long currentCapacity()
- Specified by:
currentCapacityin interfaceStorer
-
maximumCapacity
long maximumCapacity()
- Specified by:
maximumCapacityin interfaceStorer
-
Creator
static BinaryStorer.Creator Creator(BinaryChannelCountProvider channelCountProvider, boolean switchByteOrder)
-
-