Package org.deuce.transaction.tl2cm.cm

Examples of org.deuce.transaction.tl2cm.cm.Suicide


  public static ContentionManager createContentionManager() {
    String cmId = System.getProperty(TL2CM_CONTENTIONMANAGER);
    ContentionManager cm = null;
    int constant = getConstant();
    if ("Suicide".equals(cmId)) {
      cm = new Suicide();
    }
    else if ("Aggressive".equals(cmId)) {
      cm = new Aggressive();
    }
    if ("Polite".equals(cmId)) {
      cm = new Polite(2);
    }
    else if ("Karma".equals(cmId)) {
      cm = new Karma(4);
    }
    else if ("Polka".equals(cmId)) {
      cm = new Polka(4);
    }
    else {
      cm = new Suicide()// This is the default CM
    }
    return cm;
  }
View Full Code Here

TOP

Related Classes of org.deuce.transaction.tl2cm.cm.Suicide

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.