org.keridwen.core.data.storage.packet
Interface AccessorSafe<ObjectType extends Serializable>

All Superinterfaces:
Accessor<ObjectType>
All Known Implementing Classes:
DoubleAccessor, ObjectAccessorSafe

public interface AccessorSafe<ObjectType extends Serializable>
extends Accessor<ObjectType>

Data accessor has the ability to extract and put data in/from the DataManager

Author:
JeT - Artenum

Method Summary
 ObjectType getContent()
           
 void readSafe(DataPacketSafe<ObjectType> packet)
          read data from a DataPacket in safe mode
 void safeWrite(DataPacketSafe<ObjectType> packet)
          write data to the DataPacket in safe mode
 void setContent(ObjectType object)
           
 
Methods inherited from interface org.keridwen.core.data.storage.packet.Accessor
getDataTypes, getId, getMode
 

Method Detail

readSafe

void readSafe(DataPacketSafe<ObjectType> packet)
              throws DataIOException,
                     DataConcurrencyException
read data from a DataPacket in safe mode

Throws:
DataIOException
DataConcurrencyException

safeWrite

void safeWrite(DataPacketSafe<ObjectType> packet)
               throws DataIOException,
                      DataConcurrencyException
write data to the DataPacket in safe mode

Throws:
DataIOException
DataConcurrencyException

getContent

ObjectType getContent()
Returns:
the accessed object

setContent

void setContent(ObjectType object)
Parameters:
object - the object to set in this accessor


Copyright © 2010-2013 Artenum. All Rights Reserved.