|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.data.storage.packet.DataPacket<ObjectType> org.keridwen.core.data.storage.packet.DataPacketSafe<ObjectType>
public abstract class DataPacketSafe<ObjectType>
Constructor Summary | |
---|---|
DataPacketSafe(UniqueIdGenerator<DataPacketId> idGenerator)
Constructor |
Method Summary | |
---|---|
abstract boolean |
closeIn(InputStream in)
close the input stream used to read data |
abstract boolean |
closeOut(OutputStream out)
close the output stream used to write data |
abstract Class<?> |
getPacketDataType()
Type of data managed by this packet |
abstract InputStream |
openIn()
Create a new input stream used to read data. |
abstract OutputStream |
openOut()
Open the only output stream used to write data TODO: manage concurrency (throw DataModelConcurrencyException ?) |
Methods inherited from class org.keridwen.core.data.storage.packet.DataPacket |
---|
addDataPacketListener, fireDataPacketEvent, forceReadLockRelease, forceWriteLockRelease, getPacketId, isReadInProgress, isWriteInProgress, removeDataPacketListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataPacketSafe(UniqueIdGenerator<DataPacketId> idGenerator)
packetId
- Method Detail |
---|
public abstract Class<?> getPacketDataType()
getPacketDataType
in class DataPacket<ObjectType>
public abstract InputStream openIn() throws DataIOException
DataIOException
public abstract OutputStream openOut() throws DataIOException
DataIOException
public abstract boolean closeOut(OutputStream out) throws DataIOException
DataIOException
public abstract boolean closeIn(InputStream in) throws DataIOException
DataIOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |