Package one.microstream.com
Class ComPersistenceChannel.Abstract<C,D>
java.lang.Object
one.microstream.com.ComPersistenceChannel.Abstract<C,D>
- All Implemented Interfaces:
- WriteController,- ComPersistenceChannel<C,D>,- PersistenceChannel<D>,- PersistenceSource<D>,- PersistenceTarget<D>,- PersistenceWriteController
- Direct Known Subclasses:
- ComPersistenceChannelBinary.Abstract
- Enclosing interface:
- ComPersistenceChannel<C,D>
public abstract static class ComPersistenceChannel.Abstract<C,D> extends Object implements ComPersistenceChannel<C,D>
- 
Nested Class SummaryNested classes/interfaces inherited from interface one.microstream.com.ComPersistenceChannelComPersistenceChannel.Abstract<C,D>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceWriteControllerPersistenceWriteController.Disabled, PersistenceWriteController.Enabled, PersistenceWriteController.Wrapper
- 
Constructor SummaryConstructors Constructor Description Abstract()
- 
Method SummaryModifier and Type Method Description voidcloseChannel()abstract voidcloseSource()Take actions to deactivate/close/destroy the source because it won't be read again.abstract voidcloseTarget()Take actions to deactivate/close/destroy the target because it won't be written to again.voidprepareChannel()abstract voidprepareSource()Prepare to read from this source.abstract voidprepareTarget()Prepare to write to this target.XGettingCollection<? extends D>read()A general, unspecific read, e.g.XGettingCollection<? extends D>readByObjectIds(PersistenceIdSet[] objectIds)voidwrite(D data)Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.persistence.types.PersistenceWriteControllerisStoringEnabled, validateIsStoringEnabled
- 
Constructor Details- 
Abstractpublic Abstract()
 
- 
- 
Method Details- 
readDescription 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 interface- PersistenceSource<C>
- Returns:
- data segments containing general data if applicable, otherwise null.
- Throws:
- PersistenceExceptionTransfer
 
- 
write- Specified by:
- writein interface- PersistenceTarget<C>
- Throws:
- PersistenceExceptionTransfer
 
- 
prepareChannelpublic void prepareChannel()- Specified by:
- prepareChannelin interface- PersistenceChannel<C>
 
- 
closeChannelpublic void closeChannel()- Specified by:
- closeChannelin interface- PersistenceChannel<C>
 
- 
prepareSourcepublic abstract void prepareSource()Description copied from interface:PersistenceSourcePrepare to read from this source. E.g. open a defined file.- Specified by:
- prepareSourcein interface- PersistenceSource<C>
 
- 
prepareTargetpublic abstract void prepareTarget()Description copied from interface:PersistenceTargetPrepare to write to this target. E.g. open a defined file.- Specified by:
- prepareTargetin interface- PersistenceTarget<C>
 
- 
closeSourcepublic abstract void closeSource()Description copied from interface:PersistenceSourceTake actions to deactivate/close/destroy the source because it won't be read again.- Specified by:
- closeSourcein interface- PersistenceSource<C>
 
- 
closeTargetpublic abstract void closeTarget()Description copied from interface:PersistenceTargetTake actions to deactivate/close/destroy the target because it won't be written to again.- Specified by:
- closeTargetin interface- PersistenceTarget<C>
 
- 
readByObjectIdspublic XGettingCollection<? extends D> readByObjectIds(PersistenceIdSet[] objectIds) throws PersistenceExceptionTransfer- Specified by:
- readByObjectIdsin interface- PersistenceSource<C>
- Throws:
- PersistenceExceptionTransfer
 
 
-