Class AbstractRefCallback
java.lang.Object
com.atlassian.bitbucket.repository.AbstractRefCallback
- All Implemented Interfaces:
RefCallback
Convenience implementation of
RefCallback
that provides no-op implementations for all methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onEnd
(RefSummary summary) Called after the finalref
has been streamed.boolean
Discards the providedref
.void
onStart
(RefContext context) Called before the firstref
is streamed.
-
Constructor Details
-
AbstractRefCallback
public AbstractRefCallback()
-
-
Method Details
-
onEnd
Description copied from interface:RefCallback
Called after the finalref
has been streamed.Note: If there were no refs, this method may be called immediately after
RefCallback.onStart(RefContext)
without any calls toRefCallback.onRef(Ref)
.- Specified by:
onEnd
in interfaceRefCallback
- Parameters:
summary
- summarizes the request and the streamed refs- Throws:
IOException
- may be thrown by implementations which perform I/O.
-
onRef
Discards the providedref
.- Specified by:
onRef
in interfaceRefCallback
- Parameters:
ref
- ignored- Returns:
true
if further refs should be streamed; otherwise,false
to stop streaming- Throws:
IOException
- may be thrown by implementations which perform I/O.
-
onStart
Description copied from interface:RefCallback
Called before the firstref
is streamed.- Specified by:
onStart
in interfaceRefCallback
- Parameters:
context
- provides details about the request for which refs are being streamed- Throws:
IOException
- may be thrown by implementations which perform I/O.
-