File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 27
27
28
28
/**
29
29
* A cache of {@link SyncFuture}s. This class supports two methods
30
- * {@link SyncFutureCache#getIfPresentOrNew()} and {@link SyncFutureCache#offer()}. Usage pattern:
31
- * SyncFuture sf = syncFutureCache.getIfPresentOrNew(); sf.reset(...); // Use the sync future
32
- * finally: syncFutureCache.offer(sf); Offering the sync future back to the cache makes it eligible
33
- * for reuse within the same thread context. Cache keyed by the accessing thread instance and
34
- * automatically invalidated if it remains unused for
35
- * {@link SyncFutureCache#SYNC_FUTURE_INVALIDATION_TIMEOUT_MINS} minutes.
30
+ * {@link SyncFutureCache#getIfPresentOrNew()} and {@link SyncFutureCache#offer(SyncFuture)}}.
31
+ * <p>
32
+ * Usage pattern:
33
+ *
34
+ * <pre>
35
+ * SyncFuture sf = syncFutureCache.getIfPresentOrNew();
36
+ * sf.reset(...);
37
+ * // Use the sync future
38
+ * finally: syncFutureCache.offer(sf);
39
+ * </pre>
40
+ *
41
+ * Offering the sync future back to the cache makes it eligible for reuse within the same thread
42
+ * context. Cache keyed by the accessing thread instance and automatically invalidated if it remains
43
+ * unused for {@link SyncFutureCache#SYNC_FUTURE_INVALIDATION_TIMEOUT_MINS} minutes.
36
44
*/
37
45
@ InterfaceAudience .Private
38
46
public final class SyncFutureCache {
You can’t perform that action at this time.
0 commit comments