Package com.biglybt.pifimpl.local.ddb
Class DDBaseImpl.dbEvent
- java.lang.Object
-
- com.biglybt.pifimpl.local.ddb.DDBaseImpl.dbEvent
-
- All Implemented Interfaces:
DistributedDatabaseEvent
- Enclosing class:
- DDBaseImpl
protected class DDBaseImpl.dbEvent extends java.lang.Object implements DistributedDatabaseEvent
-
-
Field Summary
Fields Modifier and Type Field Description private DDBaseContactImpl
contact
private DistributedDatabaseKey
key
private DistributedDatabaseKeyStats
key_stats
private int
type
private DistributedDatabaseValue
value
-
Fields inherited from interface com.biglybt.pif.ddb.DistributedDatabaseEvent
ET_DIVERSIFIED, ET_KEY_STATS_READ, ET_LOCAL_CONTACT_CHANGED, ET_OPERATION_COMPLETE, ET_OPERATION_STARTS, ET_OPERATION_TIMEOUT, ET_VALUE_DELETED, ET_VALUE_READ, ET_VALUE_WRITTEN
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
dbEvent(int _type)
protected
dbEvent(int _type, DistributedDatabaseKey _key)
protected
dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, byte[] _value, long _ct, long _v)
protected
dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, DistributedDatabaseKeyStats _key_stats)
protected
dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, DHTPluginValue _value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedDatabaseContact
getContact()
DistributedDatabaseKey
getKey()
DistributedDatabaseKeyStats
getKeyStats()
int
getType()
DistributedDatabaseValue
getValue()
-
-
-
Field Detail
-
type
private int type
-
key
private DistributedDatabaseKey key
-
key_stats
private DistributedDatabaseKeyStats key_stats
-
value
private DistributedDatabaseValue value
-
contact
private DDBaseContactImpl contact
-
-
Constructor Detail
-
dbEvent
protected dbEvent(int _type)
-
dbEvent
protected dbEvent(int _type, DistributedDatabaseKey _key)
-
dbEvent
protected dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, DHTPluginValue _value)
-
dbEvent
protected dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, DistributedDatabaseKeyStats _key_stats)
-
dbEvent
protected dbEvent(int _type, DistributedDatabaseKey _key, DHTPluginContact _contact, byte[] _value, long _ct, long _v)
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getType
in interfaceDistributedDatabaseEvent
-
getKey
public DistributedDatabaseKey getKey()
- Specified by:
getKey
in interfaceDistributedDatabaseEvent
-
getKeyStats
public DistributedDatabaseKeyStats getKeyStats()
- Specified by:
getKeyStats
in interfaceDistributedDatabaseEvent
-
getValue
public DistributedDatabaseValue getValue()
- Specified by:
getValue
in interfaceDistributedDatabaseEvent
-
getContact
public DistributedDatabaseContact getContact()
- Specified by:
getContact
in interfaceDistributedDatabaseEvent
-
-