Package org.elasticsearch.action
Class GenericAction<Request extends ActionRequest,Response extends ActionResponse>
- java.lang.Object
-
- org.elasticsearch.action.GenericAction<Request,Response>
-
- Direct Known Subclasses:
Action
public abstract class GenericAction<Request extends ActionRequest,Response extends ActionResponse> extends java.lang.Object
A generic action. Should strive to make it a singleton.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenericAction(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
name()
The name of the action.abstract Response
newResponse()
Creates a new response instance.TransportRequestOptions
transportOptions(Settings settings)
Optional request options for the action.
-
-
-
Method Detail
-
name
public java.lang.String name()
The name of the action. Must be unique across actions.
-
newResponse
public abstract Response newResponse()
Creates a new response instance.
-
transportOptions
public TransportRequestOptions transportOptions(Settings settings)
Optional request options for the action.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-