@ThreadSafe @Internal public static final class BinderTransport.BinderClientTransport extends BinderTransport implements io.grpc.internal.ConnectionClientTransport, io.grpc.binder.internal.Bindable.Observer
BinderTransport.BinderClientTransport, BinderTransport.BinderServerTransport, BinderTransport.TransportStateattributes, EARLIEST_SUPPORTED_WIRE_FORMAT_VERSION, INBOUND_PARCELABLE_POLICY, ongoingCalls, REMOTE_UID, SERVER_AUTHORITY, SETUP_TRANSPORT, SHUTDOWN_TRANSPORT, shutdownStatus, WIRE_FORMAT_VERSION| Constructor and Description |
|---|
BinderClientTransport(android.content.Context sourceContext,
AndroidComponentAddress targetAddress,
BindServiceFlags bindServiceFlags,
java.util.concurrent.Executor mainThreadExecutor,
io.grpc.internal.ObjectPool<java.util.concurrent.ScheduledExecutorService> executorServicePool,
io.grpc.internal.ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool,
SecurityPolicy securityPolicy,
InboundParcelablePolicy inboundParcelablePolicy,
io.grpc.Attributes eagAttrs) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handlePingResponse(android.os.Parcel parcel) |
protected void |
handleSetupTransport(android.os.Parcel parcel) |
io.grpc.internal.ClientStream |
newStream(io.grpc.MethodDescriptor<?,?> method,
io.grpc.Metadata headers,
io.grpc.CallOptions callOptions,
io.grpc.ClientStreamTracer[] tracers) |
void |
notifyShutdown(io.grpc.Status status) |
void |
notifyTerminated() |
void |
onBound(android.os.IBinder binder)
We're now bound to the service.
|
void |
onUnbound(io.grpc.Status reason)
We've disconnected from (or failed to bind to) the service.
|
void |
ping(io.grpc.internal.ClientTransport.PingCallback callback,
java.util.concurrent.Executor executor) |
void |
shutdown(io.grpc.Status reason) |
void |
shutdownNow(io.grpc.Status reason) |
java.lang.Runnable |
start(io.grpc.internal.ManagedClientTransport.Listener clientTransportListener) |
protected void |
unregisterInbound(io.grpc.binder.internal.Inbound<?> inbound) |
binderDied, createInbound, getAttributes, getLogId, getScheduledExecutorService, getStats, handleTransaction, sendPing, setOutgoingBinderpublic BinderClientTransport(android.content.Context sourceContext,
AndroidComponentAddress targetAddress,
BindServiceFlags bindServiceFlags,
java.util.concurrent.Executor mainThreadExecutor,
io.grpc.internal.ObjectPool<java.util.concurrent.ScheduledExecutorService> executorServicePool,
io.grpc.internal.ObjectPool<? extends java.util.concurrent.Executor> offloadExecutorPool,
SecurityPolicy securityPolicy,
InboundParcelablePolicy inboundParcelablePolicy,
io.grpc.Attributes eagAttrs)
public void onBound(android.os.IBinder binder)
io.grpc.binder.internal.Bindable.ObserveronBound in interface io.grpc.binder.internal.Bindable.Observerpublic void onUnbound(io.grpc.Status reason)
io.grpc.binder.internal.Bindable.ObserveronUnbound in interface io.grpc.binder.internal.Bindable.Observerreason - why the connection failed or couldn't be established in the first place@CheckReturnValue public java.lang.Runnable start(io.grpc.internal.ManagedClientTransport.Listener clientTransportListener)
start in interface io.grpc.internal.ManagedClientTransportpublic io.grpc.internal.ClientStream newStream(io.grpc.MethodDescriptor<?,?> method,
io.grpc.Metadata headers,
io.grpc.CallOptions callOptions,
io.grpc.ClientStreamTracer[] tracers)
newStream in interface io.grpc.internal.ClientTransportprotected void unregisterInbound(io.grpc.binder.internal.Inbound<?> inbound)
unregisterInbound in class BinderTransportpublic void ping(io.grpc.internal.ClientTransport.PingCallback callback,
java.util.concurrent.Executor executor)
ping in interface io.grpc.internal.ClientTransportpublic void shutdown(io.grpc.Status reason)
shutdown in interface io.grpc.internal.ManagedClientTransportpublic void shutdownNow(io.grpc.Status reason)
shutdownNow in interface io.grpc.internal.ManagedClientTransportpublic void notifyShutdown(io.grpc.Status status)
public void notifyTerminated()
protected void handleSetupTransport(android.os.Parcel parcel)
handleSetupTransport in class BinderTransportprotected void handlePingResponse(android.os.Parcel parcel)
handlePingResponse in class BinderTransport