Class AuditLogCategoryResultRouter

java.lang.Object
io.confluent.security.audit.router.AuditLogCategoryResultRouter
All Implemented Interfaces:
Router

public class AuditLogCategoryResultRouter extends Object implements Router
  • Constructor Details

    • AuditLogCategoryResultRouter

      public AuditLogCategoryResultRouter()
  • Method Details

    • setRoute

      public AuditLogCategoryResultRouter setRoute(String category, AuditLogRouterResult result, String topic)
    • route

      public Optional<String> route(String category, AuditLogRouterResult result)
    • topic

      public Optional<String> topic(io.confluent.security.audit.AuditLogEntry auditLogEntry)
      Description copied from interface: Router
      Possibly return the name of a topic that this event should be routed to.

      If the value is present, but "", the Router wants this message to be discarded.

      If the value is an empty Optional, the Router has no opinion about what the routing should be. In that case, the caller should consult a different Router or fall back to a default. This is intended to allow a prioritized list of Routers to be tried, with the first one with a concrete answer determining the routing.

      Specified by:
      topic in interface Router
    • toString

      public String toString()
      Overrides:
      toString in class Object