Skip to content

Commit

Permalink
docs: update unsupported operation exception on ttl operation
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed May 17, 2023
1 parent af52330 commit ecd408a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/nosql-core/src/main/java/jakarta/nosql/Template.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public interface Template {
* @param <T> the instance type
* @return the entity saved
* @throws NullPointerException when entity or ttl is null
* @throws UnsupportedOperationException when the database does not provide TTL
*/
<T> T insert(T entity, Duration ttl);

Expand All @@ -69,6 +70,7 @@ public interface Template {
* @param ttl time to live
* @return the entity saved
* @throws NullPointerException when entities is null
* @throws UnsupportedOperationException when the database does not provide TTL
*/
<T> Iterable<T> insert(Iterable<T> entities, Duration ttl);

Expand Down

0 comments on commit ecd408a

Please sign in to comment.