HBASE-14715 Add javadocs to DelegatingRetryingCallable

This commit is contained in:
Jesse Yates 2015-11-02 16:20:12 -08:00
parent f0176d942a
commit 1b8b612b8b
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,13 @@ import java.io.IOException;
import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* Helper callable for internal use when you just want to override a single method of a {@link
* RetryingCallable}. By default, this just delegates all {@link RetryingCallable} methods to the
* specified delegate.
* @param <T> Result class from calls to the delegate {@link RetryingCallable}
* @param <D> Type of the delegate class
*/
@InterfaceAudience.Private
public class DelegatingRetryingCallable<T, D extends RetryingCallable<T>> implements
RetryingCallable<T> {

View File

@ -26,7 +26,7 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
/**
* A Callable&lt;T&gt; that will be retried. If {@link #call(int)} invocation throws exceptions,
* we will call {@link #throwable(Throwable, boolean)} with whatever the exception was.
* @param <T>
* @param <T> result class from executing <tt>this</tt>
*/
@InterfaceAudience.Private
public interface RetryingCallable<T> {