hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/5] hbase git commit: HBASE-14715 Add javadocs to DelegatingRetryingCallable
Date Tue, 03 Nov 2015 21:45:41 GMT
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/f3bd085d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/f3bd085d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/f3bd085d

Branch: refs/heads/branch-1.2
Commit: f3bd085d2ae53db898cfc4f62d9b502a2f51a154
Parents: c8ddaaa
Author: Jesse Yates <jyates@apache.org>
Authored: Mon Nov 2 16:20:12 2015 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Tue Nov 3 13:45:09 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/f3bd085d/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/f3bd085d/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> {


Mime
View raw message