Class ReRegion

  • All Implemented Interfaces:
    Region

    @Immutable
    @Loggable(1)
    public final class ReRegion
    extends Object
    implements Region
    Region that retries on failure.
    Since:
    0.9
    • Constructor Detail

      • ReRegion

        public ReRegion​(Region region)
        Public ctor.
        Parameters:
        region - Origin region
    • Method Detail

      • aws

        @RetryOnFailure(verbose=false,
                        delay=5L,
                        unit=SECONDS)
        public com.amazonaws.services.dynamodbv2.AmazonDynamoDB aws()
        Description copied from interface: Region
        Get DynamoDB client.
        Specified by:
        aws in interface Region
        Returns:
        The client
      • table

        @RetryOnFailure(verbose=false,
                        delay=5L,
                        unit=SECONDS)
        public Table table​(String name)
        Description copied from interface: Region
        Get one table.
        Specified by:
        table in interface Region
        Parameters:
        name - Table name
        Returns:
        Table