Modifier and Type | Field and Description |
---|---|
static String |
SUPPRESSED |
Constructor and Description |
---|
AuditLogRouter(AuditLogRouterJsonConfig config,
int cacheEntries) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
defaultRoute(String category,
AuditLogRouterResult result) |
boolean |
isEventRoutable(io.confluent.security.authorizer.provider.ConfluentAuthorizationEvent authorizationEvent) |
Optional<String> |
topic(io.confluent.security.audit.AuditLogEntry auditLogEntry)
Possibly return the name of a topic that this event should be routed to.
|
String |
toString() |
public static final String SUPPRESSED
public AuditLogRouter(AuditLogRouterJsonConfig config, int cacheEntries)
public Optional<String> topic(io.confluent.security.audit.AuditLogEntry auditLogEntry)
Router
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.
public boolean isEventRoutable(io.confluent.security.authorizer.provider.ConfluentAuthorizationEvent authorizationEvent)
public Optional<String> defaultRoute(String category, AuditLogRouterResult result)