Package com.biglybt.pifimpl.local.ddb
Class DDBaseValueImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.ddb.DDBaseValueImpl
-
- All Implemented Interfaces:
DistributedDatabaseValue
public class DDBaseValueImpl extends java.lang.Object implements DistributedDatabaseValue
-
-
Field Summary
Fields Modifier and Type Field Description private DDBaseContactImpl
contact
private long
creation_time
protected static int
MAX_VALUE_SIZE
private java.lang.Object
value
private byte[]
value_bytes
private long
version
-
Constructor Summary
Constructors Modifier Constructor Description protected
DDBaseValueImpl(DDBaseContactImpl _contact, byte[] _value_bytes, long _creation_time, long _version)
protected
DDBaseValueImpl(DDBaseContactImpl _contact, java.lang.Object _value, long _creation_time, long _version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
getBytes()
DistributedDatabaseContact
getContact()
long
getCreationTime()
java.lang.Object
getValue(java.lang.Class c)
long
getVersion()
-
-
-
Field Detail
-
contact
private DDBaseContactImpl contact
-
value
private java.lang.Object 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 Detail
-
DDBaseValueImpl
protected DDBaseValueImpl(DDBaseContactImpl _contact, java.lang.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 Detail
-
getValue
public java.lang.Object getValue(java.lang.Class c) throws DistributedDatabaseException
- 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
public DistributedDatabaseContact getContact()
- Specified by:
getContact
in interfaceDistributedDatabaseValue
-
-