Class ComPersistenceChannelBinary.Default
java.lang.Object
one.microstream.communication.types.ComPersistenceChannel.Abstract<C,Binary>
one.microstream.communication.binary.types.ComPersistenceChannelBinary.Abstract<SocketChannel>
one.microstream.communication.binary.types.ComPersistenceChannelBinary.Default
- All Implemented Interfaces:
WriteController,ComPersistenceChannelBinary<SocketChannel>,ComPersistenceChannel<SocketChannel,Binary>,PersistenceChannel<Binary>,PersistenceSource<Binary>,PersistenceTarget<Binary>,PersistenceWriteController
- Enclosing interface:
- ComPersistenceChannelBinary<C>
public static final class ComPersistenceChannelBinary.Default extends ComPersistenceChannelBinary.Abstract<SocketChannel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.communication.types.ComPersistenceChannel
ComPersistenceChannel.Abstract<C,D>Nested classes/interfaces inherited from interface one.microstream.communication.binary.types.ComPersistenceChannelBinary
ComPersistenceChannelBinary.Abstract<C>, ComPersistenceChannelBinary.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceWriteController
PersistenceWriteController.Disabled, PersistenceWriteController.Enabled, PersistenceWriteController.Wrapper -
Method Summary
Modifier and Type Method Description voidcloseSource()Take actions to deactivate/close/destroy the source because it won't be read again.voidcloseTarget()Take actions to deactivate/close/destroy the target because it won't be written to again.protected XGettingCollection<? extends Binary>internalRead(SocketChannel channel)protected voidinternalWrite(SocketChannel channel, Binary chunk)booleanisStoringEnabled()booleanisWritable()voidprepareSource()Prepare to read from this source.voidprepareTarget()Prepare to write to this target.voidvalidateIsStoringEnabled()voidvalidateIsWritable()Methods inherited from class one.microstream.communication.binary.types.ComPersistenceChannelBinary.Abstract
ensureDefaultBufferMethods inherited from class one.microstream.communication.types.ComPersistenceChannel.Abstract
closeChannel, getConnection, prepareChannel, read, readByObjectIds, writeMethods 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
read, readByObjectIds
-
Method Details
-
internalRead
protected XGettingCollection<? extends Binary> internalRead(SocketChannel channel) throws PersistenceExceptionTransfer- Specified by:
internalReadin classComPersistenceChannel.Abstract<SocketChannel,Binary>- Throws:
PersistenceExceptionTransfer
-
internalWrite
protected void internalWrite(SocketChannel channel, Binary chunk) throws PersistenceExceptionTransfer- Specified by:
internalWritein classComPersistenceChannel.Abstract<SocketChannel,Binary>- Throws:
PersistenceExceptionTransfer
-
prepareSource
public void prepareSource()Description copied from interface:PersistenceSourcePrepare to read from this source. E.g. open a defined file.- Specified by:
prepareSourcein interfacePersistenceSource<Binary>- Specified by:
prepareSourcein classComPersistenceChannel.Abstract<SocketChannel,Binary>
-
prepareTarget
public void prepareTarget()Description copied from interface:PersistenceTargetPrepare to write to this target. E.g. open a defined file.- Specified by:
prepareTargetin interfacePersistenceTarget<Binary>- Specified by:
prepareTargetin classComPersistenceChannel.Abstract<SocketChannel,Binary>
-
closeSource
public void closeSource()Description copied from interface:PersistenceSourceTake actions to deactivate/close/destroy the source because it won't be read again.- Specified by:
closeSourcein interfacePersistenceSource<Binary>- Specified by:
closeSourcein classComPersistenceChannel.Abstract<SocketChannel,Binary>
-
closeTarget
public 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 interfacePersistenceTarget<Binary>- Specified by:
closeTargetin classComPersistenceChannel.Abstract<SocketChannel,Binary>
-
validateIsWritable
public final void validateIsWritable() -
isWritable
public final boolean isWritable() -
validateIsStoringEnabled
public void validateIsStoringEnabled() -
isStoringEnabled
public boolean isStoringEnabled()
-