public final class ServiceMethodInvoker extends Object
| Constructor and Description |
|---|
ServiceMethodInvoker(Method method,
Object service,
MethodInfo methodInfo,
ServiceProviderErrorMapper errorMapper,
ServiceMessageDataDecoder dataDecoder,
Authenticator<Object> authenticator,
PrincipalMapper<Object,Object> principalMapper)
Constructs a service method invoker out of real service object instance and method info.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Flux<ServiceMessage> |
invokeBidirectional(org.reactivestreams.Publisher<ServiceMessage> publisher)
Invokes service method with bidirectional communication.
|
reactor.core.publisher.Flux<ServiceMessage> |
invokeMany(ServiceMessage message)
Invokes service method with message stream response.
|
reactor.core.publisher.Mono<ServiceMessage> |
invokeOne(ServiceMessage message)
Invokes service method with single response.
|
MethodInfo |
methodInfo() |
Object |
service() |
String |
toString() |
public ServiceMethodInvoker(Method method, Object service, MethodInfo methodInfo, ServiceProviderErrorMapper errorMapper, ServiceMessageDataDecoder dataDecoder, Authenticator<Object> authenticator, PrincipalMapper<Object,Object> principalMapper)
method - service method (required)service - service instance (required)methodInfo - method information (required)errorMapper - error mapper (required)dataDecoder - data decoder (required)authenticator - authenticator (optional)principalMapper - principal mapper (optional)public reactor.core.publisher.Mono<ServiceMessage> invokeOne(ServiceMessage message)
message - request service messagepublic reactor.core.publisher.Flux<ServiceMessage> invokeMany(ServiceMessage message)
message - request service messagepublic reactor.core.publisher.Flux<ServiceMessage> invokeBidirectional(org.reactivestreams.Publisher<ServiceMessage> publisher)
publisher - request service messagepublic Object service()
public MethodInfo methodInfo()
Copyright © 2015–2021. All rights reserved.