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 intprivate longprivate BloomFilterprivate HashWrapperprivate DHTPluginStorageManagerprivate longprivate shortprivate intprivate byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedstorageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key) protectedstorageKey(DHTPluginStorageManager _manager, byte _type, HashWrapper _key, long _expiry) -
Method Summary
Modifier and TypeMethodDescriptionprotected static DHTPluginStorageManager.storageKeydeserialise(DHTPluginStorageManager _manager, Map map) byteintprotected longprotected HashWrappergetKey()intintgetSize()protected voidread(DHTTransportContact contact) protected Mapvoidprotected voidvalueChanged(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:
serialiseStatsin interfaceDHTStorageKey- Throws:
IOException
-
getKey
-
getExpiry
protected long getExpiry() -
getDiversificationType
public byte getDiversificationType()- Specified by:
getDiversificationTypein interfaceDHTStorageKey
-
getReadsPerMinute
public int getReadsPerMinute() -
getSize
public int getSize() -
getEntryCount
public int getEntryCount() -
read
-
valueChanged
protected void valueChanged(int entries_diff, int size_diff)
-