Package org.openiam.common.beans.mq
Class CounterRabbitMQService
- java.lang.Object
-
- org.openiam.common.beans.mq.AbstractRabbitMQService
-
- org.openiam.common.beans.mq.CounterRabbitMQService
-
@Component public final class CounterRabbitMQService extends AbstractRabbitMQService
The service implements the method to get next value in series. If series with given key hasn't existed before, then it will be created with initial value 0.
-
-
Field Summary
-
Fields inherited from class org.openiam.common.beans.mq.AbstractRabbitMQService
rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description CounterRabbitMQService(CounterQueue counterQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterResponse
create(CounterDTO counterDTO)
void
delete(String key)
long
incrementAndGet(String key)
CounterListResponse
list(String keyPattern, int from, int size)
-
Methods inherited from class org.openiam.common.beans.mq.AbstractRabbitMQService
crudRequest, idRequest
-
-
-
-
Constructor Detail
-
CounterRabbitMQService
public CounterRabbitMQService(CounterQueue counterQueue)
-
-
Method Detail
-
incrementAndGet
public long incrementAndGet(String key)
-
delete
public void delete(String key)
-
create
public CounterResponse create(CounterDTO counterDTO)
-
list
public CounterListResponse list(String keyPattern, int from, int size)
-
-