LogEntry checkout() { LogEntry le = pool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; } }
gondola.getHostId(), index, savedIndex)); boolean isContentsEqual = le.equals(buffer, bufferOffset, bufferLen); logger.info( "[{}-{}] SaveQueue: overwriting index={} which is older than the savedIndex={}. "
gondola.getHostId(), index, savedIndex)); boolean isContentsEqual = le.equals(buffer, bufferOffset, bufferLen); logger.info("[{}-{}] SaveQueue: overwriting index={} which is older than the savedIndex={}. Contents are {}.", gondola.getHostId(), cmember.memberId, index, savedIndex, isContentsEqual ? "identical" : "different");
LogEntry checkout() { LogEntry le = pool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; }
LogEntry checkout() { LogEntry le = logEntryPool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; } }
LogEntry checkout() { LogEntry le = pool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; }
if (le != null) { savedIndex = le.index; le.release();
LogEntry checkout() { LogEntry le = logEntryPool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; } }
LogEntry checkout() { LogEntry le = pool.poll(); if (le == null) { le = new LogEntry(this, maxCommandSize); } return le; } }