public class

AbstractRefCallback

extends Object
implements RefCallback2
java.lang.Object
   ↳ com.atlassian.stash.repository.AbstractRefCallback

Class Overview

Convenience implementation of RefCallback that provides no-op implementations for all methods.

Summary

Public Constructors
AbstractRefCallback()
Public Methods
void onEnd(RefSummary summary)
Called after the final ref has been streamed.
@Deprecated void onRef(Ref ref)
This method is deprecated. in 2.10 for update in 3.0. This method will not be removed. However, its signature will be changed to public boolean onRef(@Nonnull Ref ref) throws IOException and the implementation will be changed to return true by default.
void onStart(RefContext context)
Called before the first ref is streamed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.stash.repository.RefCallback
From interface com.atlassian.stash.repository.RefCallback2

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
Throws
IOException

@Deprecated public void onRef (Ref ref)

This method is deprecated.
in 2.10 for update in 3.0. This method will not be removed. However, its signature will be changed to public boolean onRef(@Nonnull Ref ref) throws IOException and the implementation will be changed to return true by default.

Discards the provided ref.

Parameters
ref ignored

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
Throws
IOException