constructor() {
    this._subscriptionsForType = {};
    this._currentSubscription = null;
  }
EventSubscriptionVendor stores a set of EventSubscriptions that are
subscribed to a particular event type.