-
- All Implemented Interfaces:
-
android.os.IBinder.DeathRecipient,io.grpc.InternalInstrumented,io.grpc.InternalWithLogId,io.grpc.binder.internal.LeakSafeOneWayBinder.TransactionHandler,io.grpc.internal.ServerTransport
@Internal() public final class BinderTransport.BinderServerTransport extends BinderTransport implements ServerTransport
Concrete server-side transport implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private ServerTransportListenerserverTransportListener
-
Constructor Summary
Constructors Constructor Description BinderTransport.BinderServerTransport(ObjectPool<ScheduledExecutorService> executorServicePool, Attributes attributes, List<ServerStreamTracer.Factory> streamTracerFactories, IBinder callbackBinder)
-
Method Summary
Modifier and Type Method Description synchronized voidsetServerTransportListener(ServerTransportListener serverTransportListener)voidnotifyShutdown(Status status)voidnotifyTerminated()synchronized voidshutdown()synchronized voidshutdownNow(Status reason)-
Methods inherited from class io.grpc.binder.internal.BinderTransport
binderDied, getAttributes, getLogId, getScheduledExecutorService, getStats, handleTransaction -
Methods inherited from class io.grpc.binder.internal.LeakSafeOneWayBinder.TransactionHandler
handleTransaction -
Methods inherited from class android.os.IBinder.DeathRecipient
binderDied -
Methods inherited from class io.grpc.internal.ServerTransport
getScheduledExecutorService, shutdown, shutdownNow -
Methods inherited from class io.grpc.InternalInstrumented
getStats -
Methods inherited from class io.grpc.InternalWithLogId
getLogId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BinderTransport.BinderServerTransport
BinderTransport.BinderServerTransport(ObjectPool<ScheduledExecutorService> executorServicePool, Attributes attributes, List<ServerStreamTracer.Factory> streamTracerFactories, IBinder callbackBinder)
-
-
Method Detail
-
setServerTransportListener
synchronized void setServerTransportListener(ServerTransportListener serverTransportListener)
-
notifyShutdown
void notifyShutdown(Status status)
-
notifyTerminated
void notifyTerminated()
-
shutdown
synchronized void shutdown()
-
shutdownNow
synchronized void shutdownNow(Status reason)
-
-
-
-