Examples: LimitUpdatedBy property (Database - Java)

This agent cycles the updated-by limit from 0 to 1000 in increments of 100.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();

      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      double lu = db.getLimitUpdatedBy();
      if (lu > 1000)
        db.setLimitUpdatedBy(0);
      else
        db.setLimitUpdatedBy(lu + 100);
      System.out.println("LimitUpdatedBy = " + db.getLimitUpdatedBy());

    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}