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

    Fields inherited from interface org.elasticsearch.client.Validatable

    EMPTY
  • 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()  

    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

    • 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 class java.lang.Object
    • hashCode

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