public interface Instacount
| Modifier and Type | Interface and Description |
|---|---|
static class |
Instacount.Builder
A class for building instances of
Instacount. |
static interface |
Instacount.InstacountFeign
The feign interface for the Instacount client.
|
| Modifier and Type | Method and Description |
|---|---|
CreateShardedCounterResponse |
createShardedCounter()
Creates a new counter with a count of zero (0) and a unique "name" provided by Instacount.
|
CreateShardedCounterResponse |
createShardedCounter(CreateShardedCounterInput createCounterInput)
Creates a new counter using data from the specified
createCounterInput. |
DecrementShardedCounterResponse |
decrementShardedCounter(String counterName)
Decrements the counter named
counterName by 1. |
DecrementShardedCounterResponse |
decrementShardedCounter(String counterName,
DecrementShardedCounterInput decrementCounterInput)
Decrements the counter named
counterName by the amount specified in amount, using the specified
async characteristics.. |
DeleteShardedCounterResponse |
deleteShardedCounter(String counterName)
Creates a new counter using data from the specified
createCounterInput. |
GetShardedCounterResponse |
getShardedCounter(String counterName)
Gets the counter with the specified
counterName from the Instacount API. |
GetShardedCounterOperationResponse |
getShardedCounterOperation(String counterName,
Integer shardIndex,
String operationId)
Get the
ShardedCounterOperation for the specified inputs. |
IncrementShardedCounterResponse |
incrementShardedCounter(String counterName)
Increments the counter named
counterName by 1. |
IncrementShardedCounterResponse |
incrementShardedCounter(String counterName,
IncrementShardedCounterInput incrementCounterInput)
Increments the counter named
counterName by the amount specified in amount, using the specified
async characteristics.. |
UpdateShardedCounterResponse |
updateShardedCounter(String counterName,
UpdateShardedCounterInput updateCounterInput)
Creates a new counter using data from the specified
createCounterInput. |
CreateShardedCounterResponse createShardedCounter() throws InstacountClientException
InstacountClientExceptionCreateShardedCounterResponse createShardedCounter(CreateShardedCounterInput createCounterInput) throws InstacountClientException
createCounterInput.createCounterInput - An instance of CreateShardedCounterInput.InstacountClientExceptionGetShardedCounterResponse getShardedCounter(String counterName) throws InstacountClientException
counterName from the Instacount API.counterName - A String representing the name of the ShardedCounter resource.InstacountClientExceptionUpdateShardedCounterResponse updateShardedCounter(String counterName, UpdateShardedCounterInput updateCounterInput) throws InstacountClientException
createCounterInput.counterName - A String representing the name of the ShardedCounter resource.updateCounterInput - An instance of UpdateShardedCounterInput.InstacountClientExceptionDeleteShardedCounterResponse deleteShardedCounter(String counterName) throws InstacountClientException
createCounterInput.counterName - A String representing the name of the ShardedCounter resource.InstacountClientExceptionIncrementShardedCounterResponse incrementShardedCounter(String counterName) throws InstacountClientException
counterName by 1.counterName - InstacountClientExceptionDecrementShardedCounterResponse decrementShardedCounter(String counterName) throws InstacountClientException
counterName by 1.counterName - InstacountClientExceptionIncrementShardedCounterResponse incrementShardedCounter(String counterName, IncrementShardedCounterInput incrementCounterInput) throws InstacountClientException
counterName by the amount specified in amount, using the specified
async characteristics..counterName - A String representing the name of the counter to incrementShardedCounter.incrementCounterInput - An instance of IncrementShardedCounterInput for shaping the operation.InstacountClientExceptionDecrementShardedCounterResponse decrementShardedCounter(String counterName, DecrementShardedCounterInput decrementCounterInput) throws InstacountClientException
counterName by the amount specified in amount, using the specified
async characteristics..counterName - A String representing the name of the counter to decrementShardedCounter.decrementCounterInput - An instance of DecrementShardedCounterInput for shaping the operation.InstacountClientExceptionGetShardedCounterOperationResponse getShardedCounterOperation(String counterName, Integer shardIndex, String operationId) throws InstacountClientException
ShardedCounterOperation for the specified inputs.counterName - A String representing the name of the counter resource.shardIndex - The 0-based index of the shard this operation was performed against.operationId - A String representing the unique identifier of the operation being requested.InstacountClientExceptionCopyright © 2015–2016 Instacount. All rights reserved.