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