Class 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 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 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:
        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.
        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,​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 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:
        Attributes