Class ResultHolderResultQueue
java.lang.Object
org.springframework.batch.repeat.support.ResultHolderResultQueue
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 with no replacement. Scheduled for removal in 6.0.
An implementation of the 
ResultQueue that throttles the number of expected
 results, limiting it to a maximum at any given time.- Author:
 - Dave Syer, Mahmoud Ben Hassine
 
- 
Constructor Summary
ConstructorsConstructorDescriptionResultHolderResultQueue(int throttleLimit) Deprecated, for removal: This API element is subject to removal in a future version. - 
Method Summary
Modifier and TypeMethodDescriptionvoidexpect()Deprecated, for removal: This API element is subject to removal in a future version.Tell the queue to expect one more result.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.voidput(org.springframework.batch.repeat.support.ResultHolder holder) Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.batch.repeat.support.ResultHoldertake()Deprecated, for removal: This API element is subject to removal in a future version.Get the next result as soon as it becomes available. 
- 
Constructor Details
- 
ResultHolderResultQueue
public ResultHolderResultQueue(int throttleLimit) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
 throttleLimit- the maximum number of results that can be expected at any given time.
 
 - 
 - 
Method Details
- 
isEmpty
public boolean isEmpty()Deprecated, for removal: This API element is subject to removal in a future version. - 
isExpecting
public boolean isExpecting()Deprecated, for removal: This API element is subject to removal in a future version. - 
expect
Deprecated, for removal: This API element is subject to removal in a future version.Tell the queue to expect one more result. Blocks until a new result is available if already expecting too many (as determined by the throttle limit).- Throws:
 InterruptedException- See Also:
 - 
ResultQueue.expect()
 
 - 
put
public void put(org.springframework.batch.repeat.support.ResultHolder holder) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
 IllegalArgumentException
 - 
take
public org.springframework.batch.repeat.support.ResultHolder take() throws NoSuchElementException, InterruptedExceptionDeprecated, for removal: This API element is subject to removal in a future version.Get the next result as soon as it becomes available.
Release result immediately if:- There is a result that is continuable.
 
- There is no result (as per contract of 
ResultQueue). - The number of results is less than the number expected.
 
- Not expecting.
 - Interrupted.
 
- Throws:
 NoSuchElementExceptionInterruptedException- See Also:
 - 
ResultQueue.take()
 
 
 -