@Override public AsyncSender interceptSender(AsyncSender sender) { for (TransportInterceptor interceptor : this.transportInterceptors) { sender = interceptor.interceptSender(sender); } return sender; }
@Override public <T extends TransportRequest> TransportRequestHandler<T> interceptHandler( String action, String executor, TransportRequestHandler<T> actualHandler) { for (TransportInterceptor interceptor : this.transportInterceptors) { actualHandler = interceptor.interceptHandler(action, executor, actualHandler); } return actualHandler; }