25 lines
962 B
Java
25 lines
962 B
Java
|
package io.grpc.stub;
|
||
|
|
||
|
import io.grpc.CallOptions;
|
||
|
import io.grpc.Channel;
|
||
|
import io.grpc.stub.AbstractFutureStub;
|
||
|
import io.grpc.stub.AbstractStub;
|
||
|
import io.grpc.stub.ClientCalls;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public abstract class AbstractFutureStub<S extends AbstractFutureStub<S>> extends AbstractStub<S> {
|
||
|
static final boolean $assertionsDisabled = false;
|
||
|
|
||
|
protected AbstractFutureStub(Channel channel, CallOptions callOptions) {
|
||
|
super(channel, callOptions);
|
||
|
}
|
||
|
|
||
|
public static <T extends AbstractStub<T>> T newStub(AbstractStub.StubFactory<T> stubFactory, Channel channel) {
|
||
|
return (T) newStub(stubFactory, channel, CallOptions.DEFAULT);
|
||
|
}
|
||
|
|
||
|
public static <T extends AbstractStub<T>> T newStub(AbstractStub.StubFactory<T> stubFactory, Channel channel, CallOptions callOptions) {
|
||
|
return stubFactory.newStub(channel, callOptions.withOption(ClientCalls.STUB_TYPE_OPTION, ClientCalls.StubType.FUTURE));
|
||
|
}
|
||
|
}
|