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