Class ReDosage

  • All Implemented Interfaces:
    Dosage

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

      • ReDosage

        public ReDosage​(Dosage dosage)
        Public ctor.
        Parameters:
        dosage - Origin dosage
    • Method Detail

      • items

        @RetryOnFailure(verbose=false,
                        delay=5L,
                        unit=SECONDS)
        public List<Map<String,​com.amazonaws.services.dynamodbv2.model.AttributeValue>> items()
        Description copied from interface: Dosage
        Items.
        Specified by:
        items in interface Dosage
        Returns:
        List of items
      • hasNext

        @RetryOnFailure(verbose=false,
                        delay=5L,
                        unit=SECONDS)
        public boolean hasNext()
        Description copied from interface: Dosage
        Has next dosage?
        Specified by:
        hasNext in interface Dosage
        Returns:
        TRUE if next storage is avaiable
      • next

        @RetryOnFailure(verbose=false,
                        delay=5L,
                        unit=SECONDS)
        public Dosage next()
        Description copied from interface: Dosage
        Fetch next dosage.
        Specified by:
        next in interface Dosage
        Returns:
        The dosage