Package mops.businesslogic.event
Class LatestEventIdService
- java.lang.Object
-
- mops.businesslogic.event.LatestEventIdService
-
@Service public class LatestEventIdService extends java.lang.Object
Service to interface with the latest event id.
-
-
Constructor Summary
Constructors Constructor Description LatestEventIdService(LatestEventIdRepository latestEventIdRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatestEventId
getLatestEventId()
Get the latest event id.void
saveLatestEventId(LatestEventId latestEventId)
Saves the given latest event id.
-
-
-
Constructor Detail
-
LatestEventIdService
public LatestEventIdService(LatestEventIdRepository latestEventIdRepository)
-
-
Method Detail
-
getLatestEventId
public LatestEventId getLatestEventId() throws MopsException
Get the latest event id.- Returns:
- loaded latest event id
- Throws:
MopsException
- on error
-
saveLatestEventId
public void saveLatestEventId(LatestEventId latestEventId) throws MopsException
Saves the given latest event id.- Parameters:
latestEventId
- latest event id to save- Throws:
MopsException
- on error
-
-