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 voiddelete(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)Delete item from aws table.Frameframe()Make a new frame, in order to retrieve items.Stringname()Get real table name.Itemput(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)Put new item there.Regionregion()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 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:
Attributes
-
frame
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame frame()Description copied from interface:TableMake a new frame, in order to retrieve items.
-
region
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Region region()Description copied from interface:TableGet back to the entire region.
-
name
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public String name()Description copied from interface:TableGet real table name.
-
delete
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public void delete(Map<String,com.amazonaws.services.dynamodbv2.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:
Attributes
-
-