public class InterceptorRegistry extends Object
forConnection(DuplexConnectionInterceptor) -- transport level
forSocketAcceptor(SocketAcceptorInterceptor) -- for accepting new connections
forRequester(RSocketInterceptor) -- for performing of requests
forResponder(RSocketInterceptor) -- for responding to requests
| Constructor and Description |
|---|
InterceptorRegistry() |
public InterceptorRegistry forRequester(RSocketInterceptor interceptor)
RSocketInterceptor that will decorate the RSocket used for performing requests.public InterceptorRegistry forRequester(Consumer<List<RSocketInterceptor>> consumer)
forRequester(RSocketInterceptor) with access to the list of existing
registrations.public InterceptorRegistry forResponder(RSocketInterceptor interceptor)
RSocketInterceptor that will decorate the RSocket used for resonding to
requests.public InterceptorRegistry forResponder(Consumer<List<RSocketInterceptor>> consumer)
forResponder(RSocketInterceptor) with access to the list of existing
registrations.public InterceptorRegistry forSocketAcceptor(SocketAcceptorInterceptor interceptor)
SocketAcceptorInterceptor that will intercept the accepting of new connections.public InterceptorRegistry forSocketAcceptor(Consumer<List<SocketAcceptorInterceptor>> consumer)
forSocketAcceptor(SocketAcceptorInterceptor) with access to the list of
existing registrations.public InterceptorRegistry forConnection(DuplexConnectionInterceptor interceptor)
DuplexConnectionInterceptor.public InterceptorRegistry forConnection(Consumer<List<DuplexConnectionInterceptor>> consumer)
forConnection(DuplexConnectionInterceptor) with access to the list of
existing registrations.