Package com.db4o.foundation
Interface PausableBlockingQueue4<T>
- 
- All Superinterfaces:
- BlockingQueue4<T>,- Queue4<T>
 - All Known Subinterfaces:
- TimeoutBlockingQueue4<T>
 - All Known Implementing Classes:
- PausableBlockingQueue,- TimeoutBlockingQueue
 
 public interface PausableBlockingQueue4<T> extends BlockingQueue4<T> 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPaused()booleanpause()Pauses the queue, making calls toQueue4.next()block untilresume()is called.booleanresume()Resumes the queue, releasing blocked calls toQueue4.next()that can reach a next queue item..TtryNext()Returns the next element in queue if there is one available, returns null otherwise.- 
Methods inherited from interface com.db4o.foundation.BlockingQueue4drainTo, next, stop
 
- 
 
- 
- 
- 
Method Detail- 
pauseboolean pause() Pauses the queue, making calls to Queue4.next()block untilresume()is called.- Returns:
- whether or not this call changed the state of the queue.
 
 - 
resumeboolean resume() Resumes the queue, releasing blocked calls to Queue4.next()that can reach a next queue item..- Returns:
- whether or not this call changed the state of the queue.
 
 - 
isPausedboolean isPaused() 
 - 
tryNextT tryNext() Returns the next element in queue if there is one available, returns null otherwise. This method will not never block, regardless of the queue being paused or no elements are available. - Returns:
- next element, if available and queue not paused.
 
 
- 
 
-