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_CREATED
Instant
from the repository.saveLastCreated
(Instant value) Saves a newRedditInstantProperty
with the nameRedditInstantProperty.RedditInstantPropertyName.LAST_CREATED
and the provided value.
-
Constructor Details
-
RedditInstantPropertyService
public RedditInstantPropertyService()
-
-
Method Details
-
getLastCreated
Retrieves theRedditInstantProperty.RedditInstantPropertyName.LAST_CREATED
Instant
from the repository. If no value is found, it returnsInstant.EPOCH
.- Returns:
- the last created
Instant
-
saveLastCreated
Saves a newRedditInstantProperty
with the nameRedditInstantProperty.RedditInstantPropertyName.LAST_CREATED
and the provided value.- Parameters:
value
- theInstant
value to save- Returns:
- the saved
RedditInstantProperty
-