Class Overview
Convenience implementation of RefCallback
that provides no-op implementations for all methods.
Public Constructors
public
AbstractRefCallback
()
Public Methods
public
void
onEnd
(RefSummary summary)
Called after the final ref
has been streamed.
Note: If there were no refs, this method may be called immediately after onStart(RefContext)
without
any calls to onRef(Ref)
.
Parameters
summary
| summarizes the request and the streamed refs |
public
boolean
onRef
(Ref ref)
Discards the provided ref
.
Returns
true
if further refs should be streamed; otherwise, false
to stop streaming
public
void
onStart
(RefContext context)
Called before the first ref
is streamed.
Parameters
context
| provides details about the request for which refs are being streamed |