You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by sy...@apache.org on 2015/11/05 18:36:56 UTC

[03/23] hbase git commit: HBASE-14715 Add javadocs to DelegatingRetryingCallable

HBASE-14715 Add javadocs to DelegatingRetryingCallable


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1b8b612b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1b8b612b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1b8b612b

Branch: refs/heads/hbase-12439
Commit: 1b8b612b8bcd700d491443b3d90f4f9d21060f20
Parents: f0176d9
Author: Jesse Yates <jy...@apache.org>
Authored: Mon Nov 2 16:20:12 2015 -0800
Committer: Jesse Yates <jy...@apache.org>
Committed: Mon Nov 2 16:20:55 2015 -0800

----------------------------------------------------------------------
 .../hadoop/hbase/client/DelegatingRetryingCallable.java       | 7 +++++++
 .../java/org/apache/hadoop/hbase/client/RetryingCallable.java | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/1b8b612b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/DelegatingRetryingCallable.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/DelegatingRetryingCallable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/DelegatingRetryingCallable.java
index 984a867..b7d77f3 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/DelegatingRetryingCallable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/DelegatingRetryingCallable.java
@@ -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> {

http://git-wip-us.apache.org/repos/asf/hbase/blob/1b8b612b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetryingCallable.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetryingCallable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetryingCallable.java
index ea65fcf..7a32175 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetryingCallable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/RetryingCallable.java
@@ -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> {