public class AsyncInventoryStorage extends Object implements InventoryStorage
InventoryStorage that sends the resources submitted via #storeResources(String, List)
asynchronously to inventory.| Constructor and Description |
|---|
AsyncInventoryStorage(String feedId,
MonitorServiceConfiguration.StorageAdapterConfiguration config,
HttpClientBuilder httpClientBuilder,
Diagnostics diagnostics) |
| Modifier and Type | Method and Description |
|---|---|
<L> void |
resourcesAdded(InventoryEvent<L> event)
Notifies this listener that the resources in
InventoryEvent.getPayload()
were added to the monitored endpoint. |
<L> void |
resourcesRemoved(InventoryEvent<L> event)
Notifies this listener that the resources in
InventoryEvent.getPayload()
were removed from the monitored endpoint. |
void |
shutdown() |
public AsyncInventoryStorage(String feedId, MonitorServiceConfiguration.StorageAdapterConfiguration config, HttpClientBuilder httpClientBuilder, Diagnostics diagnostics)
public void shutdown()
public <L> void resourcesAdded(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload()
were added to the monitored endpoint.resourcesAdded in interface InventoryListenerevent - the InventoryEventpublic <L> void resourcesRemoved(InventoryEvent<L> event)
InventoryListenerInventoryEvent.getPayload()
were removed from the monitored endpoint.resourcesRemoved in interface InventoryListenerevent - the InventoryEventCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.