List of usage examples for org.apache.commons.collections BufferUtils blockingBuffer
public static Buffer blockingBuffer(Buffer buffer)
From source file:com.salas.bb.utils.concurrency.CachingCalculator.java
/** * Creates cached calculator with specified number of invalidation threads. * * @param threads threads./*ww w . j av a 2 s . c o m*/ */ public CachingCalculator(int threads) { keyToHolderMap = createKeyToValueMap(); invalidationQueue = BufferUtils.blockingBuffer(createQueueBuffer()); workersCount = threads; }