private long nextBase() throws IOException { long base = getNextHiId(); lo = 0; return base; }
/** * Resets the generator */ public void reset() { lo = 0; base = -1; resetHiId(); }
public synchronized String getID() throws IOException { if (base < 0) { LOG.debug("Obtain next hi ID"); base = nextBase(); } if (getNextLoId() >= getMaxLo()) { LOG.debug("Obtain next hi ID"); base = nextBase(); } return Long.toString(base + lo); }
public synchronized String getID() throws IOException { if (base < 0) { LOG.debug("Obtain next hi ID"); base = nextBase(); } if (getNextLoId() >= getMaxLo()) { LOG.debug("Obtain next hi ID"); base = nextBase(); } return Long.toString(base + lo); }
private long nextBase() throws IOException { long base = getNextHiId(); lo = 0; return base; }
/** * Resets the generator */ public void reset() { lo = 0; base = -1; resetHiId(); }