Home Reference Source
public class | source

NodesWaitlistConnecting

You can directly use an instance of this class. nodesWaitlistConnecting

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

connectingMaximum: {"maximum_fallbacks": *, "maximum_waitlist": *, "minimum_fallbacks": *, "minimum_waitlist": *}

public
Private Members
private
private
private
private

Method Summary

Public Methods
public
public
Private Methods
private
private
private
private

async _connectNowToNewNode(nextWaitListObject: *): boolean

private
private

_tryToConnectNextNode(nextWaitListObject: *): boolean

Public Constructors

public constructor() source

Public Members

public connectingMaximum: {"maximum_fallbacks": *, "maximum_waitlist": *, "minimum_fallbacks": *, "minimum_waitlist": *} source

public started: boolean source

Private Members

private _connectedOnlyTo80: boolean source

private _connectingQueue: *[] source

private _connectingTimeout: * source

private _timeoutCalculateNumberOfConnections: * source

Public Methods

public startConnecting() source

public stopConnecting() source

Private Methods

private _calculateNumberOfConnections() source

private _connectNewNodesWaitlist() source

private _connectNewNodesWaitlistInterval() source

private async _connectNowToNewNode(nextWaitListObject: *): boolean source

Params:

NameTypeAttributeDescription
nextWaitListObject *

Return:

boolean

private _countConnectingToFallbacks(): * source

Return:

*

private _tryToConnectNextNode(nextWaitListObject: *): boolean source

Params:

NameTypeAttributeDescription
nextWaitListObject *

Return:

boolean