Class ClearRealmCacheRequest
java.lang.Object
org.elasticsearch.client.security.ClearRealmCacheRequest
- All Implemented Interfaces:
Validatable
public final class ClearRealmCacheRequest extends java.lang.Object implements Validatable
Request for clearing the cache of one or more realms
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClearRealmCacheRequest(java.util.List<java.lang.String> realms, java.util.List<java.lang.String> usernames)
Create a new request to clear cache of realms -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
getRealms()
java.util.List<java.lang.String>
getUsernames()
-
Constructor Details
-
ClearRealmCacheRequest
public ClearRealmCacheRequest(java.util.List<java.lang.String> realms, java.util.List<java.lang.String> usernames)Create a new request to clear cache of realms- Parameters:
realms
- the realms to clear the cache of. Must not benull
. An empty list indicates that all realms should have their caches cleared.usernames
- the usernames to clear the cache of. Must not benull
. An empty list indicates that every user in the listed realms should have their cache cleared.
-
-
Method Details
-
getRealms
public java.util.List<java.lang.String> getRealms() -
getUsernames
public java.util.List<java.lang.String> getUsernames()
-