public class GRPCChannelManager extends Object implements BootService, Runnable
| Constructor and Description |
|---|
GRPCChannelManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannelListener(GRPCChannelListener listener) |
void |
boot() |
io.grpc.Channel |
getChannel() |
void |
onComplete() |
void |
prepare() |
void |
reportError(Throwable throwable)
If the given expcetion is triggered by network problem, connect in background.
|
void |
run() |
void |
shutdown() |
public void prepare()
throws Throwable
prepare in interface BootServiceThrowablepublic void boot()
throws Throwable
boot in interface BootServiceThrowablepublic void onComplete()
throws Throwable
onComplete in interface BootServiceThrowablepublic void shutdown()
throws Throwable
shutdown in interface BootServiceThrowablepublic void addChannelListener(GRPCChannelListener listener)
public io.grpc.Channel getChannel()
public void reportError(Throwable throwable)
throwable - Copyright © 2019 The Apache Software Foundation. All rights reserved.