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); }