Constructor
new HibernatePlugin(node, optionsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
node | KademliaNode | ||||||||||||||||||||||
options | object | <optional> | Properties
|
- Source
Members
hibernating
PropertiesName | Type | Description |
---|---|---|
hibernating | boolean | Indicates if our limits are reached |
- Source
Methods
detect(request, response, next)
Check if hibernating when messages received
Parameters:
Name | Type | Description |
---|---|---|
request | AbstractNode~request | |
response | AbstractNode~response | |
next | AbstractNode~next |
- Source
meter(type) → {stream.Transform}
Return a meter stream that increments the given accounting property
Parameters:
Name | Type | Description |
---|---|---|
type | string | ['inbound', 'outbound', 'unknown'] |
- Source
Returns:
- Type:
- stream.
Transform
start()
Starts the accounting reset timeout
- Source