@Service public class LogContextServiceImpl extends Object implements LogContextService
Constructor and Description |
---|
LogContextServiceImpl(LogDAO logDAO)
Instantiates a new Log context service.
|
Modifier and Type | Method and Description |
---|---|
List<? extends Log> |
getContextForLog(Long logId)
Get logs that happened before and after the given log
|
List<? extends Log> |
loadEarlier(Long logId,
long offset,
long amount)
Load logs that occurred BEFORE the wanted log that have the same metaata and occurred in the same thread
|
List<? extends Log> |
loadLater(Long logId,
long offset,
long amount)
Load logs that occurred AFTER the wanted log
|
@Autowired public LogContextServiceImpl(LogDAO logDAO)
logDAO
- the log daopublic List<? extends Log> loadLater(Long logId, long offset, long amount)
LogContextService
loadLater
in interface LogContextService
logId
- id of the root logoffset
- amount of logs already loadedamount
- amount to loadpublic List<? extends Log> loadEarlier(Long logId, long offset, long amount)
LogContextService
loadEarlier
in interface LogContextService
logId
- id of the root logoffset
- amount of logs already loadedamount
- amount to loadpublic List<? extends Log> getContextForLog(Long logId)
LogContextService
getContextForLog
in interface LogContextService
logId
- if of the root logCopyright © 2020. All rights reserved.