类 GrpcSimpleClient
java.lang.Object
org.egolessness.destino.common.remote.RequestSimpleClient
org.egolessness.destino.grpc.client.GrpcSimpleClient
- 所有已实现的接口:
org.egolessness.destino.common.fixedness.Lucermaire,org.egolessness.destino.common.remote.RequestClient
public class GrpcSimpleClient
extends org.egolessness.destino.common.remote.RequestSimpleClient
grpc simple request client.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.egolessness.destino.common.enumeration.RequestChannelchannel()com.google.common.util.concurrent.ListenableFuture<org.egolessness.destino.common.model.message.Response>request(Serializable request, Map<String, String> headers) org.egolessness.destino.common.model.message.Responsevoidrequest(Serializable request, Map<String, String> headers, org.egolessness.destino.common.fixedness.Callback<org.egolessness.destino.common.model.message.Response> callback) voidsetFutureStub(GrpcStub futureStub) voidshutdown()
-
构造器详细资料
-
GrpcSimpleClient
protected GrpcSimpleClient() -
GrpcSimpleClient
-
-
方法详细资料
-
setFutureStub
-
request
public org.egolessness.destino.common.model.message.Response request(Serializable request, Map<String, String> headers, Duration timeout) throws org.egolessness.destino.common.exception.DestinoException, TimeoutException- 抛出:
org.egolessness.destino.common.exception.DestinoExceptionTimeoutException
-
request
public com.google.common.util.concurrent.ListenableFuture<org.egolessness.destino.common.model.message.Response> request(Serializable request, Map<String, String> headers) -
request
public void request(Serializable request, Map<String, String> headers, org.egolessness.destino.common.fixedness.Callback<org.egolessness.destino.common.model.message.Response> callback) -
shutdown
public void shutdown() throws org.egolessness.destino.common.exception.DestinoException- 抛出:
org.egolessness.destino.common.exception.DestinoException
-
channel
public org.egolessness.destino.common.enumeration.RequestChannel channel()
-