Package com.jcabi.dynamo.retry
Class ReValve
- java.lang.Object
-
- com.jcabi.dynamo.retry.ReValve
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions)
Count items.Dosage
fetch(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions, Collection<String> keys)
Fetch the first dosage.
-
-
-
Constructor Detail
-
ReValve
public ReValve(Valve valve)
Public ctor.- Parameters:
valve
- Origin valve
-
-
Method Detail
-
fetch
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public Dosage fetch(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions, Collection<String> keys) throws IOException
Description copied from interface:Valve
Fetch the first dosage.- Specified by:
fetch
in interfaceValve
- Parameters:
credentials
- Credentials to AWStable
- Table nameconditions
- Conditionskeys
- Keys of the table- Returns:
- Dosage
- Throws:
IOException
- In case of DynamoDB failure
-
count
@RetryOnFailure(verbose=false, delay=5L, unit=SECONDS) public int count(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions) throws IOException
Description copied from interface:Valve
Count items.- Specified by:
count
in interfaceValve
- Parameters:
credentials
- Credentials to AWStable
- Table nameconditions
- Conditions- Returns:
- Total count of the
- Throws:
IOException
- In case of DynamoDB failure
-
-