Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / taskqueue / FutureAdapter.java
blob9624a2f2b645caa34277c091a0a468c3d9a74e9e
1 // Copyright 2013 Google Inc. All rights reserved.
3 package com.google.appengine.api.taskqueue;
5 import com.google.appengine.api.utils.FutureWrapper;
7 import java.util.concurrent.Future;
9 /**
10 * {@code FutureAdapter} is a simple {@link FutureWrapper} for situations where
11 * no conversion of exceptions is required. This class is thread-safe.
13 * @param <K> The type of this {@link Future}
14 * @param <V> The type of the wrapped {@link Future}
16 abstract class FutureAdapter<K, V> extends FutureWrapper<K, V> {
18 FutureAdapter(Future<K> parent) {
19 super(parent);
22 protected final Throwable convertException(Throwable cause) {
23 return cause;