public static class ServiceInfo.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> ServiceInfo.Builder |
authenticator(Authenticator<? extends T> authenticator)
Setter for
authenticator. |
ServiceInfo |
build() |
ServiceInfo.Builder |
dataDecoder(ServiceMessageDataDecoder dataDecoder)
Setter for
dataDecoder. |
ServiceInfo.Builder |
errorMapper(ServiceProviderErrorMapper errorMapper)
Setter for
errorMapper. |
<T,R> ServiceInfo.Builder |
principalMapper(PrincipalMapper<? super T,? extends R> principalMapper)
Setter for
principalMapper. |
ServiceInfo.Builder |
tag(String key,
String value)
Setter for
tags. |
public ServiceInfo.Builder tag(String key, String value)
tags. Merges this tags with Microservices.tags. If keys
are clashing this tags shall override Microservices.tags.key - tag key; not nullvalue - tag value; not nullpublic ServiceInfo.Builder errorMapper(ServiceProviderErrorMapper errorMapper)
errorMapper. Overrides default Microservices.errorMapper.errorMapper - error mapper; not nullpublic ServiceInfo.Builder dataDecoder(ServiceMessageDataDecoder dataDecoder)
dataDecoder. Overrides default Microservices.dataDecoder.dataDecoder - data decoder; not nullpublic <T> ServiceInfo.Builder authenticator(Authenticator<? extends T> authenticator)
authenticator. Overrides default Microservices.authenticator.T - type of auth data returned by authenticatorauthenticator - authenticator; optionalpublic <T,R> ServiceInfo.Builder principalMapper(PrincipalMapper<? super T,? extends R> principalMapper)
principalMapper. Overrides default Microservices.principalMapper.T - auth data typeR - principal typeprincipalMapper - principalMapper; optionalpublic ServiceInfo build()
Copyright © 2015–2021. All rights reserved.