Class ReTable

java.lang.Object
com.jcabi.dynamo.retry.ReTable
All Implemented Interfaces:
Table

@Immutable @Loggable(1) public final class ReTable extends Object implements Table
Table that retries on failure.
Since:
0.9
  • Constructor Details

    • ReTable

      public ReTable(Table table)
      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 IOException
      Description copied from interface: Table
      Put new item there.

      It is recommended to use Attributes supplementary class, instead of a raw Map.

      Specified by:
      put in interface Table
      Parameters:
      attributes - Attributes to save
      Returns:
      Item just created
      Throws:
      IOException - In case of DynamoDB failure
      See Also:
    • 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.
      Specified by:
      frame in interface Table
      Returns:
      Frame
    • region

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Region region()
      Description copied from interface: Table
      Get back to the entire region.
      Specified by:
      region in interface Table
      Returns:
      Region
    • name

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public String name()
      Description copied from interface: Table
      Get real table name.
      Specified by:
      name in interface Table
      Returns:
      Actual name of DynamoDB table
    • delete

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public void delete(Map<String,software.amazon.awssdk.services.dynamodb.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 raw Map.

      Specified by:
      delete in interface Table
      Parameters:
      attributes - Attributes containing item key and value
      Throws:
      IOException - In case of DynamoDB failure
      See Also: