Class: AbstractEventHubSelectionStrategy

fabric-network. AbstractEventHubSelectionStrategy

An abstract selection strategy that provides an interface for other selection strategies

new AbstractEventHubSelectionStrategy(peers)

Parameters:
Name Type Description
peers Array.<Peer> list of peers whose event hub should be used

Methods


getNextPeer()

Gets the next peer
Returns:
Type
Peer

updateEventHubAvailability(deadPeer)

Updates the availability of the peer
Parameters:
Name Type Description
deadPeer Peer Disconnected peer