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 intcount(Credentials credentials, String table, Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions)Count items.Dosagefetch(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 IOExceptionDescription copied from interface:ValveFetch the first dosage.- Specified by:
 fetchin 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 IOExceptionDescription copied from interface:ValveCount items.- Specified by:
 countin interfaceValve- Parameters:
 credentials- Credentials to AWStable- Table nameconditions- Conditions- Returns:
 - Total count of the
 - Throws:
 IOException- In case of DynamoDB failure
 
 - 
 
 -