public final class ThriftCallService extends Object implements com.linecorp.armeria.server.Service<com.linecorp.armeria.common.RpcRequest,com.linecorp.armeria.common.RpcResponse>
Service that handles a Thrift RpcRequest.THttpService| Modifier and Type | Method and Description |
|---|---|
Map<String,ThriftServiceEntry> |
entries()
Returns the information about the Thrift services being served.
|
static ThriftCallService |
of(Map<String,?> implementations)
Creates a new multiplexed
ThriftCallService with the specified service implementations. |
static ThriftCallService |
of(Object implementation)
Creates a new
ThriftCallService with the specified service implementation. |
com.linecorp.armeria.common.RpcResponse |
serve(com.linecorp.armeria.server.ServiceRequestContext ctx,
com.linecorp.armeria.common.RpcRequest call) |
public static ThriftCallService of(Object implementation)
ThriftCallService with the specified service implementation.implementation - an implementation of *.Iface or *.AsyncIface service interface
generated by the Apache Thrift compilerpublic static ThriftCallService of(Map<String,?> implementations)
ThriftCallService with the specified service implementations.implementations - a Map whose key is service name and value is the implementation of
*.Iface or *.AsyncIface service interface generated by
the Apache Thrift compilerpublic Map<String,ThriftServiceEntry> entries()
Map whose key is a service name, which could be an empty string if this service
is not multiplexedpublic com.linecorp.armeria.common.RpcResponse serve(com.linecorp.armeria.server.ServiceRequestContext ctx,
com.linecorp.armeria.common.RpcRequest call)
throws Exception
serve in interface com.linecorp.armeria.server.Service<com.linecorp.armeria.common.RpcRequest,com.linecorp.armeria.common.RpcResponse>Exception© Copyright 2015–2018 LINE Corporation. All rights reserved.