public final class AndroidChannelBuilder
extends <any>
ManagedChannel that, when provided with a Context, will automatically
monitor the Android device's network state to smoothly handle intermittent network failures.
Requires the Android ACCESS_NETWORK_STATE permission.
| Modifier and Type | Method and Description |
|---|---|
ManagedChannel |
build() |
AndroidChannelBuilder |
context(Context context)
Enables automatic monitoring of the device's network state.
|
protected <any> |
delegate() |
static AndroidChannelBuilder |
forAddress(java.lang.String name,
int port) |
static AndroidChannelBuilder |
forTarget(java.lang.String target) |
public static final AndroidChannelBuilder forTarget(java.lang.String target)
public static AndroidChannelBuilder forAddress(java.lang.String name, int port)
public AndroidChannelBuilder context(Context context)
protected <any> delegate()
public ManagedChannel build()