public interface TimestampCache
Modifier and Type | Method and Description |
---|---|
boolean |
existsTimestampFor(GUID shopGuid)
Determines whether or not an timestamp for the
passed shop identifier exists within the cache.
|
java.sql.Timestamp |
get(GUID shopGuid)
Returns the timestamp for the shop with
the passed identifier.
|
void |
put(GUID shopGuid,
java.sql.Timestamp timestamp)
Stores the passed timestamp in the cache mapped by the
specified shop identifier.
|
void |
remove(GUID shopGuid)
Removes the timestamp for the shop with the passed
GUID from the cache.
|
boolean existsTimestampFor(GUID shopGuid)
shopGuid
- GUID of the shop.java.sql.Timestamp get(GUID shopGuid) throws TimestampLostException
shopGuid
- GUID of the shop to retrieve a timestamp for.TimestampLostException
- in case no timestamp was found.void put(GUID shopGuid, java.sql.Timestamp timestamp)
shopGuid
- GUID of the shop belonging to the timestamp to store.timestamp
- Timestamp to store.DataPersistenceException
- in case an error occurred while
trying to store to the cache.void remove(GUID shopGuid)
shopGuid
- GUID of the shop.