Class BinaryStorageChannel
- java.lang.Object
-
- one.microstream.persistence.binary.internal.BinaryStorageChannel
-
- All Implemented Interfaces:
one.microstream.afs.types.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStoringEnabled()booleanisWritable()one.microstream.collections.types.XGettingCollection<? extends Binary>read()one.microstream.collections.types.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, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceChannel
closeChannel, prepareChannel
-
Methods inherited from interface one.microstream.persistence.types.PersistenceSource
closeSource, prepareSource
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTarget
closeTarget, prepareTarget
-
-
-
-
Constructor Detail
-
BinaryStorageChannel
public BinaryStorageChannel(PersistenceSource<Binary> source, PersistenceTarget<Binary> target)
-
-
Method Detail
-
write
public final void write(Binary data) throws PersistenceExceptionTransfer
- Specified by:
writein interfacePersistenceTarget<Binary>- Throws:
PersistenceExceptionTransfer
-
read
public final one.microstream.collections.types.XGettingCollection<? extends Binary> read() throws PersistenceExceptionTransfer
- Specified by:
readin interfacePersistenceSource<Binary>- Throws:
PersistenceExceptionTransfer
-
readByObjectIds
public final one.microstream.collections.types.XGettingCollection<? extends Binary> readByObjectIds(PersistenceIdSet[] oids) throws PersistenceExceptionTransfer
- Specified by:
readByObjectIdsin interfacePersistenceSource<Binary>- Throws:
PersistenceExceptionTransfer
-
validateIsWritable
public final void validateIsWritable()
- Specified by:
validateIsWritablein interfaceone.microstream.afs.types.WriteController
-
isWritable
public final boolean isWritable()
- Specified by:
isWritablein interfaceone.microstream.afs.types.WriteController
-
validateIsStoringEnabled
public void validateIsStoringEnabled()
- Specified by:
validateIsStoringEnabledin interfacePersistenceWriteController
-
isStoringEnabled
public boolean isStoringEnabled()
- Specified by:
isStoringEnabledin interfacePersistenceWriteController
-
-