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
ConstructorDescriptionRedisTimeSeriesAuditEventRepository
(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 void
addEvent
(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(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_EVENTS
will 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:
addEvent
in classAbstractBankIdAuditEventRepository
- Parameters:
event
- the audit event to log
-
find
Deprecated, for removal: This API element is subject to removal in a future version.
-
RedissonTimeSeriesAuditEventRepository
instead.