public class InMemoryImpressionsStorage extends Object implements ImpressionsStorage
| Constructor and Description |
|---|
InMemoryImpressionsStorage(int queueSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFull() |
List<KeyImpression> |
pop() |
List<KeyImpression> |
pop(int count) |
boolean |
put(KeyImpression imp) |
boolean |
put(List<KeyImpression> imps) |
public List<KeyImpression> pop(int count)
pop in interface ImpressionsStorageConsumerpublic List<KeyImpression> pop()
pop in interface ImpressionsStorageConsumerpublic boolean isFull()
isFull in interface ImpressionsStorageConsumerpublic boolean put(KeyImpression imp)
put in interface ImpressionsStorageProducerpublic boolean put(List<KeyImpression> imps)
put in interface ImpressionsStorageProducerCopyright © 2021. All rights reserved.