Package com.jcabi.dynamo.retry
Class ReTable
java.lang.Object
com.jcabi.dynamo.retry.ReTable
- All Implemented Interfaces:
Table
Table that retries on failure.
- Since:
- 0.9
-
Constructor Details
-
ReTable
Public ctor.- Parameters:
table- Origin table
-
-
Method Details
-
put
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Item put(Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes) throws IOExceptionDescription copied from interface:TablePut new item there.It is recommended to use
Attributessupplementary class, instead of a rawMap.- Specified by:
putin interfaceTable- Parameters:
attributes- Attributes to save- Returns:
- Item just created
- Throws:
IOException- In case of DynamoDB failure- See Also:
-
frame
Description copied from interface:TableMake a new frame, in order to retrieve items. -
region
Description copied from interface:TableGet back to the entire region. -
name
Description copied from interface:TableGet real table name. -
delete
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public void delete(Map<String, software.amazon.awssdk.services.dynamodb.model.AttributeValue> attributes) throws IOExceptionDescription copied from interface:TableDelete item from aws table.It is recommended to use
Attributessupplementary class, instead of a rawMap.- Specified by:
deletein interfaceTable- Parameters:
attributes- Attributes containing item key and value- Throws:
IOException- In case of DynamoDB failure- See Also:
-