Returns a new stub with the given channel for the provided method configurations. @since 1.26.0 @param factory the factory to create a stub @param channel the channel that this stub will use to do communications
(
StubFactory<T> factory, Channel channel)
| 112 | * @param channel the channel that this stub will use to do communications |
| 113 | */ |
| 114 | public static <T extends AbstractStub<T>> T newStub( |
| 115 | StubFactory<T> factory, Channel channel) { |
| 116 | return newStub(factory, channel, CallOptions.DEFAULT); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Returns a new stub with the given channel for the provided method configurations. |