Examples of LimiterStrategy


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

Examples of com.ccbill.clessidra.interfaces.LimiterStrategy

    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

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

Examples of com.ccbill.clessidra.interfaces.LimiterStrategy

    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
Copyright © 2018 www.massapi.com. 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.