Package org.elasticsearch.action.support
Interface ActionFilter
-
- All Known Implementing Classes:
ActionFilter.Simple
public interface ActionFilter
A filter allowing to filter transport actions
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ActionFilter.Simple
A simple base class for injectable action filters that spares the implementation from handling the filter chain.
-
Method Summary
Modifier and Type Method Description <Request extends ActionRequest,Response extends ActionResponse>
voidapply(Task task, java.lang.String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)
Enables filtering the execution of an action on the request side, either by sending a response through theActionListener
or by continuing the execution through the givenchain
int
order()
The position of the filter in the chain.
-
-
-
Method Detail
-
order
int order()
The position of the filter in the chain. Execution is done from lowest order to highest.
-
apply
<Request extends ActionRequest,Response extends ActionResponse> void apply(Task task, java.lang.String action, Request request, ActionListener<Response> listener, ActionFilterChain<Request,Response> chain)
Enables filtering the execution of an action on the request side, either by sending a response through theActionListener
or by continuing the execution through the givenchain
-
-