Package com.biglybt.plugin.dht.impl
Class DHTPluginStorageManager.storageKey
java.lang.Object
com.biglybt.plugin.dht.impl.DHTPluginStorageManager.storageKey
- All Implemented Interfaces:
DHTStorageKey
- Enclosing class:
DHTPluginStorageManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private long
private BloomFilter
private HashWrapper
private DHTPluginStorageManager
private long
private short
private int
private byte
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
storageKey
(DHTPluginStorageManager _manager, byte _type, HashWrapper _key) protected
storageKey
(DHTPluginStorageManager _manager, byte _type, HashWrapper _key, long _expiry) -
Method Summary
Modifier and TypeMethodDescriptionprotected static DHTPluginStorageManager.storageKey
deserialise
(DHTPluginStorageManager _manager, Map map) byte
int
protected long
protected HashWrapper
getKey()
int
int
getSize()
protected void
read
(DHTTransportContact contact) protected Map
void
protected void
valueChanged
(int entries_diff, int size_diff)
-
Field Details
-
manager
-
key
-
type
private byte type -
size
private int size -
entries
private int entries -
expiry
private long expiry -
read_count_start
private long read_count_start -
reads_per_min
private short reads_per_min -
ip_bloom_filter
-
-
Constructor Details
-
storageKey
-
storageKey
-
-
Method Details
-
serialise
-
deserialise
protected static DHTPluginStorageManager.storageKey deserialise(DHTPluginStorageManager _manager, Map map) -
serialiseStats
- Specified by:
serialiseStats
in interfaceDHTStorageKey
- Throws:
IOException
-
getKey
-
getExpiry
protected long getExpiry() -
getDiversificationType
public byte getDiversificationType()- Specified by:
getDiversificationType
in interfaceDHTStorageKey
-
getReadsPerMinute
public int getReadsPerMinute() -
getSize
public int getSize() -
getEntryCount
public int getEntryCount() -
read
-
valueChanged
protected void valueChanged(int entries_diff, int size_diff)
-