Class ReFrame

java.lang.Object
com.jcabi.dynamo.retry.ReFrame
All Implemented Interfaces:
Frame, Iterable<Item>, Collection<Item>

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

    • ReFrame

      public ReFrame(Frame frame)
      Public ctor.
      Parameters:
      frame - Origin frame
  • Method Details

    • where

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame where(String name, String value)
      Description copied from interface: Frame
      Refine using this EQ condition argument.
      Specified by:
      where in interface Frame
      Parameters:
      name - Attribute name
      value - String value expected
      Returns:
      New frame
    • where

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame where(String name, software.amazon.awssdk.services.dynamodb.model.Condition condition)
      Description copied from interface: Frame
      Refine using this condition.

      It is recommended to use a utility static method Conditions.equalTo(Object), when condition is simply an equation to a plain string value.

      Specified by:
      where in interface Frame
      Parameters:
      name - Attribute name
      condition - The condition
      Returns:
      New frame
    • where

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame where(Map<String,software.amazon.awssdk.services.dynamodb.model.Condition> conditions)
      Description copied from interface: Frame
      Refine using these conditions.

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

      Specified by:
      where in interface Frame
      Parameters:
      conditions - The conditions
      Returns:
      New frame
      See Also:
    • table

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Table table()
      Description copied from interface: Frame
      Get back to the table this frame came from.
      Specified by:
      table in interface Frame
      Returns:
      The table
    • through

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Frame through(Valve valve)
      Description copied from interface: Frame
      Change valve for items fetching.
      Specified by:
      through in interface Frame
      Parameters:
      valve - The valve to go through
      Returns:
      New frame
    • size

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public int size()
      Specified by:
      size in interface Collection<Item>
    • isEmpty

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Item>
    • contains

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean contains(Object obj)
      Specified by:
      contains in interface Collection<Item>
    • iterator

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Iterator<Item> iterator()
      Specified by:
      iterator in interface Collection<Item>
      Specified by:
      iterator in interface Iterable<Item>
    • toArray

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Object[] toArray()
      Specified by:
      toArray in interface Collection<Item>
    • toArray

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public <T> T[] toArray(T[] arr)
      Specified by:
      toArray in interface Collection<Item>
    • add

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean add(Item item)
      Specified by:
      add in interface Collection<Item>
    • remove

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean remove(Object obj)
      Specified by:
      remove in interface Collection<Item>
    • containsAll

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean containsAll(Collection<?> list)
      Specified by:
      containsAll in interface Collection<Item>
    • addAll

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean addAll(Collection<? extends Item> list)
      Specified by:
      addAll in interface Collection<Item>
    • removeAll

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean removeAll(Collection<?> list)
      Specified by:
      removeAll in interface Collection<Item>
    • retainAll

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public boolean retainAll(Collection<?> list)
      Specified by:
      retainAll in interface Collection<Item>
    • clear

      @RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public void clear()
      Specified by:
      clear in interface Collection<Item>