lib/limiter/PolicyLimiter.js
function(service, node) {
    Limiter.prototype.initialize.call(this, service, node)
    // cascade initialization
    this.policy.initialize(this, node)

    // manage state
    var stateKey = this.policy.stateKey
    if (!(stateKey in PolicyLimiter._state)) {
      PolicyLimiter._state[stateKey] = {}
    }
    PolicyLimiter._state[stateKey][this.selector.hash] =
      this.policy.initializeState(
        PolicyLimiter._state[stateKey][this.selector.hash])
  }
function(service, node) {
    Limiter.prototype.initialize.call(this, service, node)
    // cascade initialization
    this.policy.initialize(this, node)

    // manage state
    var stateKey = this.policy.stateKey
    if (!(stateKey in PolicyLimiter._state)) {
      PolicyLimiter._state[stateKey] = {}
    }
    PolicyLimiter._state[stateKey][this.selector.hash] =
      this.policy.initializeState(
        PolicyLimiter._state[stateKey][this.selector.hash])
  }
function ( service , node ) { Limiter . prototype . initialize . call ( this , service , node ) // cascade initialization this . policy . initialize ( this , node ) // manage state var stateKey = this . policy . stateKey if ( ! ( stateKey in PolicyLimiter . _state ) ) { PolicyLimiter . _state [ stateKey ] = { } } PolicyLimiter . _state [ stateKey ] [ this . selector . hash ] = this . policy . initializeState ( PolicyLimiter . _state [ stateKey ] [ this . selector . hash ] ) }
********************************************************************
@inheritdoc
********************************************************************