Interface PersistenceTarget<D>
-
- All Known Subinterfaces:
ComPersistenceChannel<C,D>
,ComPersistenceChannelBinary<C>
,EmbeddedStorageBinaryTarget
,PersistenceChannel<D>
- All Known Implementing Classes:
BinaryFileStorage
,BinaryFileTarget
,ComPersistenceChannel.Abstract
,ComPersistenceChannelBinary.Abstract
,ComPersistenceChannelBinary.Default
,EmbeddedStorageBinaryTarget.Default
public interface PersistenceTarget<D>
-
-
Method Summary
Modifier and Type Method Description default void
closeTarget()
Take actions to deactivate/close/destroy the target because it won't be written to again.default void
prepareTarget()
Prepare to write to this target.void
write(D data)
-
-
-
Method Detail
-
write
void write(D data) throws PersistenceExceptionTransfer
- Throws:
PersistenceExceptionTransfer
-
prepareTarget
default void prepareTarget()
Prepare to write to this target. E.g. open a defined file.
-
closeTarget
default void closeTarget()
Take actions to deactivate/close/destroy the target because it won't be written to again.
-
-