Examples of FpqSegmentNotInReadyState


Examples of com.btoddb.fastpersitentqueue.exceptions.FpqSegmentNotInReadyState

    public Collection<FpqEntry> pop(int batchSize) throws FpqSegmentNotInReadyState {
        metaDataLock.readLock().lock();
        try {
            // segment must be in READY state
            if (Status.READY != status) {
                throw new FpqSegmentNotInReadyState();
            }
            // find out if enough data remains in the segment.  if this segment has been removed, paged
            // to disk, etc, the adjustment will detect that too
            long remaining = numberOfOnlineEntries.addAndGet(-batchSize);
            int available = batchSize + (int) remaining;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.