@FunctionalInterface public interface RefCallback
refs
.AbstractRefCallback
Modifier and Type | Method and Description |
---|---|
default void |
onEnd(RefSummary summary)
Called after the final
ref has been streamed. |
boolean |
onRef(Ref ref)
Called to process a
ref . |
default void |
onStart(RefContext context)
Called before the first
ref is streamed. |
default void onEnd(@Nonnull RefSummary summary) throws IOException
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)
.
summary
- summarizes the request and the streamed refsIOException
- may be thrown by implementations which perform I/O.boolean onRef(@Nonnull Ref ref) throws IOException
ref
.ref
- the ref
to streamtrue
if further refs should be streamed; otherwise, false
to stop streamingIOException
- may be thrown by implementations which perform I/O.default void onStart(@Nonnull RefContext context) throws IOException
ref
is streamed.context
- provides details about the request for which refs are being streamedIOException
- may be thrown by implementations which perform I/O.Copyright © 2022 Atlassian. All rights reserved.