Class ClearRealmCacheRequest

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, TransportRequest

public class ClearRealmCacheRequest extends BaseNodesRequest
  • Constructor Details

    • ClearRealmCacheRequest

      public ClearRealmCacheRequest()
  • Method Details

    • allRealms

      public boolean allRealms()
      Returns:
      true if this request targets realms, false otherwise.
    • realms

      public String[] realms()
      Returns:
      The realms that should be evicted. Empty array indicates all realms.
    • realms

      public ClearRealmCacheRequest realms(String... realms)
      Sets the realms for which caches will be evicted. When not set all the caches of all realms will be evicted.
      Parameters:
      realms - The realm names
    • allUsernames

      public boolean allUsernames()
      Returns:
      true if this request targets users, false otherwise.
    • usernames

      public String[] usernames()
      Returns:
      The usernames of the users that should be evicted. Empty array indicates all users.
    • usernames

      public ClearRealmCacheRequest usernames(String... usernames)
      Sets the usernames of the users that should be evicted from the caches. When not set, all users will be evicted.
      Parameters:
      usernames - The usernames