public abstract class GenericAction<Request extends ActionRequest,Response extends ActionResponse> extends Object
Modifier | Constructor and Description |
---|---|
protected |
GenericAction(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
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.
|
protected GenericAction(String name)
name
- The name of the action, must be unique across actions.public String name()
public abstract Response newResponse()
public TransportRequestOptions transportOptions(Settings settings)
Copyright © 2009–2016. All rights reserved.