public class EventForwarderQueueImpl extends Object implements EventForwarder, AutoCloseable
| Constructor and Description |
|---|
EventForwarderQueueImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBatchInterval() |
int |
getBatchSize() |
ElasticSearchInitialiser |
getElasticSearchInitialiser() |
EventToIndex |
getEventToIndex() |
void |
init() |
void |
sendNow(Event event)
Asynchronously sends an event to eventd.
|
void |
sendNow(Log eventLog)
Asynchronously sends a set of events to eventd.
|
void |
sendNowSync(Event event)
Call
AggregatingMessageProducer.dispatch(Object) to synchronously
dispatch the event. |
void |
sendNowSync(Log eventLog)
Call
AggregatingMessageProducer.dispatch(Object) to synchronously
dispatch the events. |
void |
setBatchInterval(int batchInterval) |
void |
setBatchSize(int batchSize) |
void |
setElasticSearchInitialiser(ElasticSearchInitialiser elasticSearchInitialiser) |
void |
setEventToIndex(EventToIndex eventToIndex) |
public EventToIndex getEventToIndex()
public void setEventToIndex(EventToIndex eventToIndex)
public void sendNow(Event event)
EventForwardersendNow in interface EventForwarderevent - a Event object.public void sendNow(Log eventLog)
EventForwardersendNow in interface EventForwardereventLog - a Log object.public void sendNowSync(Event event)
AggregatingMessageProducer.dispatch(Object) to synchronously
dispatch the event.sendNowSync in interface EventForwarderevent - a Event object.public void sendNowSync(Log eventLog)
AggregatingMessageProducer.dispatch(Object) to synchronously
dispatch the events.sendNowSync in interface EventForwardereventLog - a Log object.public void init()
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic int getBatchSize()
public void setBatchSize(int batchSize)
public int getBatchInterval()
public void setBatchInterval(int batchInterval)
public ElasticSearchInitialiser getElasticSearchInitialiser()
public void setElasticSearchInitialiser(ElasticSearchInitialiser elasticSearchInitialiser)
elasticSearchInitialiser - the elasticSearchInitialiser to setCopyright © 2020. All rights reserved.