Class BinaryStorageChannel
java.lang.Object
one.microstream.persistence.binary.internal.BinaryStorageChannel
- All Implemented Interfaces:
 WriteController,PersistenceChannel<Binary>,PersistenceSource<Binary>,PersistenceTarget<Binary>,PersistenceWriteController
public final class BinaryStorageChannel extends Object implements PersistenceChannel<Binary>
- 
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceWriteController
PersistenceWriteController.Disabled, PersistenceWriteController.Enabled, PersistenceWriteController.Wrapper - 
Constructor Summary
Constructors Constructor Description BinaryStorageChannel(PersistenceSource<Binary> source, PersistenceTarget<Binary> target) - 
Method Summary
Modifier and Type Method Description booleanisStoringEnabled()booleanisWritable()XGettingCollection<? extends Binary>read()A general, unspecific read, e.g.XGettingCollection<? extends Binary>readByObjectIds(PersistenceIdSet[] oids)voidvalidateIsStoringEnabled()voidvalidateIsWritable()voidwrite(Binary data)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceChannel
closeChannel, prepareChannelMethods inherited from interface one.microstream.persistence.types.PersistenceSource
closeSource, prepareSourceMethods inherited from interface one.microstream.persistence.types.PersistenceTarget
closeTarget, prepareTarget 
- 
Constructor Details
 - 
Method Details
- 
write
- Specified by:
 writein interfacePersistenceTarget<Binary>- Throws:
 PersistenceExceptionTransfer
 - 
read
Description copied from interface:PersistenceSourceA general, unspecific read, e.g. to initially read data in general from the attached data source.Examples:
- simply ALL data from a plain file.
 - only root nodes (and all recursively referenced nodes) of a graph-based database.
 - nothing at all if not applicable, resulting in 
nullbeing returned. 
- Specified by:
 readin interfacePersistenceSource<Binary>- Returns:
 - data segments containing general data if applicable, otherwise 
null. - Throws:
 PersistenceExceptionTransfer
 - 
readByObjectIds
public final XGettingCollection<? extends Binary> readByObjectIds(PersistenceIdSet[] oids) throws PersistenceExceptionTransfer- Specified by:
 readByObjectIdsin interfacePersistenceSource<Binary>- Throws:
 PersistenceExceptionTransfer
 - 
validateIsWritable
public final void validateIsWritable()- Specified by:
 validateIsWritablein interfaceWriteController
 - 
isWritable
public final boolean isWritable()- Specified by:
 isWritablein interfaceWriteController
 - 
validateIsStoringEnabled
public void validateIsStoringEnabled()- Specified by:
 validateIsStoringEnabledin interfacePersistenceWriteController
 - 
isStoringEnabled
public boolean isStoringEnabled()- Specified by:
 isStoringEnabledin interfacePersistenceWriteController
 
 -