30 lines
810 B
Java
30 lines
810 B
Java
package com.alibaba.sdk.android.oss.internal;
|
|
|
|
import com.alibaba.sdk.android.oss.model.OSSResult;
|
|
import com.alibaba.sdk.android.oss.network.ExecutionContext;
|
|
import java.util.concurrent.Future;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class OSSAsyncTask<T extends OSSResult> {
|
|
private ExecutionContext a;
|
|
private volatile boolean b;
|
|
|
|
public static OSSAsyncTask a(Future future, ExecutionContext executionContext) {
|
|
OSSAsyncTask oSSAsyncTask = new OSSAsyncTask();
|
|
oSSAsyncTask.a = executionContext;
|
|
return oSSAsyncTask;
|
|
}
|
|
|
|
public boolean b() {
|
|
return this.b;
|
|
}
|
|
|
|
public void a() {
|
|
this.b = true;
|
|
ExecutionContext executionContext = this.a;
|
|
if (executionContext != null) {
|
|
executionContext.b().a();
|
|
}
|
|
}
|
|
}
|