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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidonEnd(RefSummary summary) Called after the finalrefhas been streamed.booleanDiscards the providedref.voidonStart(RefContext context) Called before the firstrefis streamed. 
- 
Constructor Details
- 
AbstractRefCallback
public AbstractRefCallback() 
 - 
 - 
Method Details
- 
onEnd
Description copied from interface:RefCallbackCalled after the finalrefhas 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:
 onEndin 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:
 onRefin interfaceRefCallback- Parameters:
 ref- ignored- Returns:
 trueif further refs should be streamed; otherwise,falseto stop streaming- Throws:
 IOException- may be thrown by implementations which perform I/O.
 - 
onStart
Description copied from interface:RefCallbackCalled before the firstrefis streamed.- Specified by:
 onStartin 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.
 
 -