Examples of QueueTake


Examples of com.cloudhopper.mq.queue.QueueTake

    //           queue for other operations (e.g. puts by other threads) to complete before returning null.
    //item = localQueue.getTemporarySession().take(0l);
   
    // Option 2: Exits on timeout. (because of put contention or takes from another thread).
    //           Reschedules if queueSize is still non-zero.
    QueueTake take = localQueue.getTemporarySession();
    try {
        item = take.take(dqm.getConfiguration().getRemotingTakeTimeout());
    } catch (QueueTimeoutException te) {
        dqm.incrementRemotingTakeTimeouts();
        logger.debug("[{}] Timeout waiting to take from Queue. Size = {}. Item = {}", new Object[] { localQueue.getName(), localQueue.getSize(), item });
    }
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.