public class MapStructDocumentImpl extends Object implements java.util.function.Function<OnmsAlarm,AlarmDocumentDTO>, AlarmDocumentFactory, AlarmMapper.MappingContext
Constructor and Description |
---|
MapStructDocumentImpl(Cache<Integer,Optional<NodeDocumentDTO>> nodeInfoCache,
java.util.function.LongSupplier currentTime) |
Modifier and Type | Method and Description |
---|---|
AlarmDocumentDTO |
apply(OnmsAlarm alarm) |
AlarmDocumentDTO |
createAlarmDocumentForDelete(int alarmId,
String reductionKey)
Creates a
DTO representing an alarm delete for the given alarm Id/reduction key. |
long |
getCurrentTime() |
Cache<Integer,Optional<NodeDocumentDTO>> |
getNodeInfoCache() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public MapStructDocumentImpl(Cache<Integer,Optional<NodeDocumentDTO>> nodeInfoCache, java.util.function.LongSupplier currentTime)
public AlarmDocumentDTO apply(OnmsAlarm alarm)
apply
in interface java.util.function.Function<OnmsAlarm,AlarmDocumentDTO>
public AlarmDocumentDTO createAlarmDocumentForDelete(int alarmId, String reductionKey)
AlarmDocumentFactory
DTO
representing an alarm delete for the given alarm Id/reduction key.createAlarmDocumentForDelete
in interface AlarmDocumentFactory
alarmId
- the alarm IdreductionKey
- the alarm reduction keypublic Cache<Integer,Optional<NodeDocumentDTO>> getNodeInfoCache()
getNodeInfoCache
in interface AlarmMapper.MappingContext
public long getCurrentTime()
getCurrentTime
in interface AlarmMapper.MappingContext
Copyright © 2020. All rights reserved.