Class RedditInstantPropertyService
java.lang.Object
io.github.yvasyliev.telegramforwarderbot.reddit.service.RedditInstantPropertyService
Service for managing
RedditInstantProperty entities.
This service provides methods to retrieve and save RedditInstantProperty instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves theRedditInstantProperty.RedditInstantPropertyName.LAST_CREATEDInstantfrom the repository.saveLastCreated(Instant value) Saves a newRedditInstantPropertywith the nameRedditInstantProperty.RedditInstantPropertyName.LAST_CREATEDand the provided value.
-
Constructor Details
-
RedditInstantPropertyService
public RedditInstantPropertyService()
-
-
Method Details
-
getLastCreated
Retrieves theRedditInstantProperty.RedditInstantPropertyName.LAST_CREATEDInstantfrom the repository. If no value is found, it returnsInstant.EPOCH.- Returns:
- the last created
Instant
-
saveLastCreated
Saves a newRedditInstantPropertywith the nameRedditInstantProperty.RedditInstantPropertyName.LAST_CREATEDand the provided value.- Parameters:
value- theInstantvalue to save- Returns:
- the saved
RedditInstantProperty
-