public class EventForwarderQueueImpl extends Object implements EventForwarder, AutoCloseable
Constructor and Description |
---|
EventForwarderQueueImpl(EventToIndex eventToIndex,
TemplateInitializer initializer,
int batchSize,
int batchInterval) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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. |
public EventForwarderQueueImpl(EventToIndex eventToIndex, TemplateInitializer initializer, int batchSize, int batchInterval)
public void sendNow(Event event)
EventForwarder
sendNow
in interface EventForwarder
event
- a Event
object.public void sendNow(Log eventLog)
EventForwarder
sendNow
in interface EventForwarder
eventLog
- a Log
object.public void sendNowSync(Event event)
AggregatingMessageProducer.dispatch(Object)
to synchronously
dispatch the event.sendNowSync
in interface EventForwarder
event
- a Event
object.public void sendNowSync(Log eventLog)
AggregatingMessageProducer.dispatch(Object)
to synchronously
dispatch the events.sendNowSync
in interface EventForwarder
eventLog
- a Log
object.public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2021. All rights reserved.