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