Class ClearRolesCacheRequest

java.lang.Object
org.elasticsearch.client.security.ClearRolesCacheRequest
All Implemented Interfaces:
Validatable

public final class ClearRolesCacheRequest
extends java.lang.Object
implements Validatable
The request used to clear the cache for native roles stored in an index.
  • Field Summary

    Fields inherited from interface org.elasticsearch.client.Validatable

    EMPTY
  • Constructor Summary

    Constructors
    Constructor Description
    ClearRolesCacheRequest​(java.lang.String... names)
    Sets the roles for which caches will be evicted.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    java.lang.String[] names()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.client.Validatable

    validate
  • Constructor Details

    • ClearRolesCacheRequest

      public ClearRolesCacheRequest​(java.lang.String... names)
      Sets the roles for which caches will be evicted. When not set all the roles will be evicted from the cache.
      Parameters:
      names - The role names
  • Method Details

    • names

      public java.lang.String[] names()
      Returns:
      an array of role names that will have the cache evicted or null if all
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object