Package com.jcabi.dynamo.retry
Class ReTable
- java.lang.Object
-
- com.jcabi.dynamo.retry.ReTable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
Delete item from aws table.Frame
frame()
Make a new frame, in order to retrieve items.String
name()
Get real table name.Item
put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
Put new item there.Region
region()
Get back to the entire region.
-
-
-
Constructor Detail
-
ReTable
public ReTable(Table table)
Public ctor.- Parameters:
table
- Origin table
-
-
Method Detail
-
put
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Item put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes) throws IOException
Description copied from interface:Table
Put new item there.It is recommended to use
Attributes
supplementary class, instead of a rawMap
.- Specified by:
put
in interfaceTable
- Parameters:
attributes
- Attributes to save- Returns:
- Item just created
- Throws:
IOException
- In case of DynamoDB failure- See Also:
Attributes
-
frame
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame frame()
Description copied from interface:Table
Make a new frame, in order to retrieve items.
-
region
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Region region()
Description copied from interface:Table
Get back to the entire region.
-
name
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public String name()
Description copied from interface:Table
Get real table name.
-
delete
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public void delete(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes) throws IOException
Description copied from interface:Table
Delete item from aws table.It is recommended to use
Attributes
supplementary class, instead of a rawMap
.- Specified by:
delete
in interfaceTable
- Parameters:
attributes
- Attributes containing item key and value- Throws:
IOException
- In case of DynamoDB failure- See Also:
Attributes
-
-