Class AccessControlLogEntry

java.lang.Object
redis.clients.jedis.resps.AccessControlLogEntry
All Implemented Interfaces:
Serializable

public class AccessControlLogEntry extends Object implements Serializable
This class holds information about an Access Control Log entry (returned by ACL LOG command) They can be access via getters. For future purpose there is also getlogEntry() method that returns a generic Map - in case where more info is returned from a server
See Also:
  • Field Details

  • Constructor Details

    • AccessControlLogEntry

      public AccessControlLogEntry(Map<String,Object> map)
  • Method Details

    • getCount

      public long getCount()
    • getReason

      public String getReason()
    • getContext

      public String getContext()
    • getObject

      public String getObject()
    • getUsername

      public String getUsername()
    • getAgeSeconds

      public String getAgeSeconds()
    • getClientInfo

      public Map<String,String> getClientInfo()
    • getlogEntry

      public Map<String,Object> getlogEntry()
      Returns:
      Generic map containing all key-value pairs returned by the server
    • getEntryId

      public long getEntryId()
    • getTimestampCreated

      public long getTimestampCreated()
    • getTimestampLastUpdated

      public long getTimestampLastUpdated()
    • getMapFromRawClientInfo

      private Map<String,String> getMapFromRawClientInfo(String clientInfo)
      Convert the client-info string into a Map of String. When the value is empty, the value in the map is set to an empty string The key order is maintained to reflect the string return by Redis
      Parameters:
      clientInfo -
      Returns:
      A Map with all client info
    • toString

      public String toString()
      Overrides:
      toString in class Object