Class RedisTimeSeriesAuditEventRepository
java.lang.Object
se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
se.swedenconnect.bankid.idp.audit.RedisTimeSeriesAuditEventRepository
- All Implemented Interfaces:
DisposableBean,AuditEventRepository
@Deprecated(forRemoval=true,
since="1.1.3")
public class RedisTimeSeriesAuditEventRepository
extends AbstractBankIdAuditEventRepository
Deprecated, for removal: This API element is subject to removal in a future version.
An
AuditEventRepository implementation that uses Redis time series to store events.- Author:
- Martin Lindström, Felix Hellman
-
Field Summary
Fields inherited from class se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
DEFAULT_SUPPORTED_EVENTS -
Constructor Summary
ConstructorsConstructorDescriptionRedisTimeSeriesAuditEventRepository(org.redisson.api.RedissonClient client, String logFile, AuditEventMapper mapper, List<String> supportedEvents) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEvent(AuditEvent event) Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class se.swedenconnect.bankid.idp.audit.AbstractBankIdAuditEventRepository
add, destroy, getAuditEventMapper
-
Constructor Details
-
RedisTimeSeriesAuditEventRepository
public RedisTimeSeriesAuditEventRepository(org.redisson.api.RedissonClient client, String logFile, AuditEventMapper mapper, List<String> supportedEvents) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
client- the Redis clientlogFile- the log file including its path (ifnull, no file logging will be performed)mapper- mapper for creating JSONsupportedEvents- the supported events (ifnull,AbstractBankIdAuditEventRepository.DEFAULT_SUPPORTED_EVENTSwill be used)- Throws:
IOException- if file logging can not be initialized
-
-
Method Details
-
addEvent
Deprecated, for removal: This API element is subject to removal in a future version.Logs an event.- Specified by:
addEventin classAbstractBankIdAuditEventRepository- Parameters:
event- the audit event to log
-
find
Deprecated, for removal: This API element is subject to removal in a future version.
-
RedissonTimeSeriesAuditEventRepositoryinstead.