Package com.ccbill.clessidra.interfaces

Examples of com.ccbill.clessidra.interfaces.LimiterStrategy


   */
  public void rollbackChain(String methodGroup, UUID invocationUUID, Object[] args) {

    rollback(methodGroup, invocationUUID, args);

    LimiterStrategy nextLimiterStrategy = getNextLimiterStrategy();
    if (nextLimiterStrategy != null) {
      nextLimiterStrategy.rollback(methodGroup, invocationUUID, args);
    }

  }
View Full Code Here


    this.propertyOverrideProvider = propertyOverrideProvider;
  }

  public LimiterStrategyConclusion callNextChainedLimiterStrategy(String methodGroup, UUID invocationUUID, Object[] args) {

    LimiterStrategy nextLimiterStrategy = getNextLimiterStrategy();

    // if there are no more strategies in the chain, return false
    if (nextLimiterStrategy == null) {
      return new LimiterStrategyConclusion(false);
    }

    // call the next strategy in chain
    LimiterStrategyConclusion nextLimiterStrategyConclusion = nextLimiterStrategy.hasLimitBeenExceededChain(methodGroup, invocationUUID, args);

    // if the next strategy return true, rollback, the user method will not be invoked
    if (nextLimiterStrategyConclusion.getHasLimitBeenExceeded()) {
      rollback(methodGroup, invocationUUID, args);
    }
View Full Code Here

   */
  public void rollbackChain(String methodGroup, UUID invocationUUID, Object[] args) {

    rollback(methodGroup, invocationUUID, args);

    LimiterStrategy nextLimiterStrategy = getNextLimiterStrategy();
    if (nextLimiterStrategy != null) {
      nextLimiterStrategy.rollback(methodGroup, invocationUUID, args);
    }

  }
View Full Code Here

    this.propertyOverrideProvider = propertyOverrideProvider;
  }

  public LimiterStrategyConclusion callNextChainedLimiterStrategy(String methodGroup, UUID invocationUUID, Object[] args) {

    LimiterStrategy nextLimiterStrategy = getNextLimiterStrategy();

    // if there are no more strategies in the chain, return false
    if (nextLimiterStrategy == null) {
      return new LimiterStrategyConclusion(false);
    }

    // call the next strategy in chain
    LimiterStrategyConclusion nextLimiterStrategyConclusion = nextLimiterStrategy.hasLimitBeenExceededChain(methodGroup, invocationUUID, args);

    // if the next strategy return true, rollback, the user method will not be invoked
    if (nextLimiterStrategyConclusion.getHasLimitBeenExceeded()) {
      rollback(methodGroup, invocationUUID, args);
    }
View Full Code Here

TOP

Related Classes of com.ccbill.clessidra.interfaces.LimiterStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.