Class ThriftCallService
java.lang.Object
com.linecorp.armeria.server.thrift.ThriftCallService
- All Implemented Interfaces:
Unwrappable
,RpcService
,Service<RpcRequest,
RpcResponse>
An
RpcService
that handles a Thrift RpcRequest
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the information about the Thrift services being served.static ThriftCallService
Creates a newThriftCallService
with the specified service implementation.static ThriftCallService
Creates a new multiplexedThriftCallService
with the specified list service implementations.serve
(ServiceRequestContext ctx, RpcRequest call) Serves an incomingRequest
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.RpcService
decorate, decorate
Methods inherited from interface com.linecorp.armeria.server.Service
as, serviceAdded, shouldCachePath, unwrap
-
Method Details
-
of
Creates a newThriftCallService
with the specified service implementation.- Parameters:
implementation
- an implementation of*.Iface
or*.AsyncIface
service interface generated by the Apache Thrift compiler
-
of
Creates a new multiplexedThriftCallService
with the specified list service implementations.- Parameters:
implementations
- aMap
whose key is service name and value is the list of implementations of*.Iface
or*.AsyncIface
service interface generated by the Apache Thrift compiler
-
entries
Returns the information about the Thrift services being served.- Returns:
- a
Map
whose key is a service name, which could be an empty string if this service is not multiplexed
-
serve
Description copied from interface:Service
Serves an incomingRequest
.- Specified by:
serve
in interfaceRpcService
- Specified by:
serve
in interfaceService<RpcRequest,
RpcResponse> - Parameters:
ctx
- the context of the receivedRequest
call
- the receivedRequest
- Returns:
- the
Response
- Throws:
Exception
-