Class ClearPrivilegesCacheRequest
java.lang.Object
org.elasticsearch.client.security.ClearPrivilegesCacheRequest
- All Implemented Interfaces:
Validatable
public final class ClearPrivilegesCacheRequest extends java.lang.Object implements Validatable
The request used to clear the cache for native application privileges stored in an index.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClearPrivilegesCacheRequest(java.lang.String... applications)
Sets the applications for which caches will be evicted. -
Method Summary
Modifier and Type Method Description java.lang.String[]
applications()
boolean
equals(java.lang.Object o)
int
hashCode()
-
Constructor Details
-
ClearPrivilegesCacheRequest
public ClearPrivilegesCacheRequest(java.lang.String... applications)Sets the applications for which caches will be evicted. When not set all privileges will be evicted from the cache.- Parameters:
applications
- The application names
-
-
Method Details
-
applications
public java.lang.String[] applications()- Returns:
- an array of application names that will have the cache evicted or
null
if all
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-