Package com.atlassian.diagnostics
Class AbstractPageCallback<T,R>
java.lang.Object
com.atlassian.diagnostics.AbstractPageCallback<T,R>
- Type Parameters:
T- the type of the value to returnat the end of streaming
- All Implemented Interfaces:
PageCallback<T,R>
A convenience base class for a
streaming callback that returns some possibly null
value of type T at the end of streaming and does no initialisation itself of this value
before the first item.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononEnd(PageSummary summary) Called after the last item has been passed to this callback (or if no item are to be passed then immediately afterPageCallback.onStart(PageRequest).voidonStart(PageRequest pageRequest) Called before the first item is encountered.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.diagnostics.PageCallback
onItem
-
Field Details
-
value
-
-
Constructor Details
-
AbstractPageCallback
-
-
Method Details
-
onStart
Description copied from interface:PageCallbackCalled before the first item is encountered. Note that this will be called even if no item is passed to this callback (for instance if any associated criteria with the streaming operation failed to find matching items).- Specified by:
onStartin interfacePageCallback<T,R>
-
onEnd
Description copied from interface:PageCallbackCalled after the last item has been passed to this callback (or if no item are to be passed then immediately afterPageCallback.onStart(PageRequest).- Specified by:
onEndin interfacePageCallback<T,R> - Returns:
- any result the callback wishes the enclosing call or process to return to its caller or
nullif no such result is to be supplied (or if the result is in factnull)
-