public long subscribe(final T subscriber) {
    final long id = subscriberId.getAndIncrement();
    subscribers.put(id, subscriber);
    return id;
  }
Add a subscriber to the list.

@param subscriber the subscriber to add
@return the ID assigned to this subscriber
util/src/main/java/org/hyperledger/besu/util/Subscribers.java