org.terracotta.toolkit.collections
Interface ToolkitBlockingQueue<E>

All Superinterfaces:
BlockingQueue<E>, Collection<E>, Destroyable, Iterable<E>, Queue<E>, ToolkitLockedObject, ToolkitObject

public interface ToolkitBlockingQueue<E>
extends BlockingQueue<E>, ToolkitLockedObject, Destroyable

A bounded toolkit BlockingQueue. The queue performs all mutative operations under the write lock from ToolkitLockedObject.getReadWriteLock() and all read operations under the read lock from the same.

Consult the Toolkit class level docs for more info on behavior regarding destroy.

Trying to add values that are not serializable will throw NotSerializableRuntimeException


Method Summary
 int getCapacity()
          Returns the capacity of this clustered blocking queue
 
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
 
Methods inherited from interface java.util.Queue
element, peek, poll, remove
 
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitLockedObject
getReadWriteLock
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject
getName
 
Methods inherited from interface org.terracotta.toolkit.object.Destroyable
destroy, isDestroyed
 

Method Detail

getCapacity

int getCapacity()
Returns the capacity of this clustered blocking queue

Returns:
capacity of the queue


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.