Package org.apache.james.jspf.executor
Interface IResponseQueue
- All Superinterfaces:
Collection<IResponse>
,Iterable<IResponse>
,List<IResponse>
,SequencedCollection<IResponse>
Queue implementation which is used to manage IResponse
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the given Response to the end of the queue.Return the last IResponse in the queue.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
removeResponse
IResponse removeResponse()Return the last IResponse in the queue. If the queue is empty it will wait until a IResponse was added- Returns:
- response
-
insertResponse
Add the given Response to the end of the queue.- Parameters:
r
-
-