Package com.biglybt.pifimpl.local.ddb
Class DDBaseValueImpl
java.lang.Object
com.biglybt.pifimpl.local.ddb.DDBaseValueImpl
- All Implemented Interfaces:
DistributedDatabaseValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DDBaseContactImpl
private long
protected static int
private Object
private byte[]
private long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DDBaseValueImpl
(DDBaseContactImpl _contact, byte[] _value_bytes, long _creation_time, long _version) protected
DDBaseValueImpl
(DDBaseContactImpl _contact, Object _value, long _creation_time, long _version) -
Method Summary
-
Field Details
-
contact
-
value
-
value_bytes
private byte[] value_bytes -
creation_time
private long creation_time -
version
private long version -
MAX_VALUE_SIZE
protected static int MAX_VALUE_SIZE
-
-
Constructor Details
-
DDBaseValueImpl
protected DDBaseValueImpl(DDBaseContactImpl _contact, Object _value, long _creation_time, long _version) throws DistributedDatabaseException - Throws:
DistributedDatabaseException
-
DDBaseValueImpl
protected DDBaseValueImpl(DDBaseContactImpl _contact, byte[] _value_bytes, long _creation_time, long _version)
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceDistributedDatabaseValue
- Throws:
DistributedDatabaseException
-
getBytes
protected byte[] getBytes() -
getCreationTime
public long getCreationTime()- Specified by:
getCreationTime
in interfaceDistributedDatabaseValue
-
getVersion
public long getVersion()- Specified by:
getVersion
in interfaceDistributedDatabaseValue
-
getContact
- Specified by:
getContact
in interfaceDistributedDatabaseValue
-