what-the-bank/sources/io/grpc/stub/AbstractAsyncStub.java

25 lines
954 B
Java

package io.grpc.stub;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.AbstractAsyncStub;
import io.grpc.stub.AbstractStub;
import io.grpc.stub.ClientCalls;
/* loaded from: classes6.dex */
public abstract class AbstractAsyncStub<S extends AbstractAsyncStub<S>> extends AbstractStub<S> {
static final boolean $assertionsDisabled = false;
public AbstractAsyncStub(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.ASYNC));
}
}