Package org.dspace.checker
Class LimitedCountDispatcher
java.lang.Object
org.dspace.checker.LimitedCountDispatcher
- All Implemented Interfaces:
BitstreamDispatcher
Decorator that dispatches a specified number of bitstreams from a delegate
dispatcher.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
-
Field Summary
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor uses LegacyPluginServiceImplConstructor.LimitedCountDispatcher(BitstreamDispatcher del, int count) Constructor. -
Method Summary
-
Constructor Details
-
LimitedCountDispatcher
public LimitedCountDispatcher()Default constructor uses LegacyPluginServiceImpl -
LimitedCountDispatcher
Constructor.- Parameters:
del- The bitstream distpatcher to delegate to.count- the number of bitstreams to check.
-
LimitedCountDispatcher
Constructor.- Parameters:
del- The bitstream distpatcher to delegate to.
-
-
Method Details
-
next
Retrieves the next bitstream to be checked.- Specified by:
nextin interfaceBitstreamDispatcher- Returns:
- the bitstream
- Throws:
SQLException- if database error
-