public interface MessageInjector
Injection of a message into a TopicOrientedApplication directly enqueues
the message for processing by the underlying AepEngine's event multiplexer
similar to how a message received from a message bus would be injected into the
engine.
Threading
AepEngine.injectMessage(IRogMessage, boolean, int),
AepEngine,
TopicOrientedApplication| Modifier and Type | Method and Description |
|---|---|
void |
injectMessage(IRogMessage message)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void |
injectMessage(IRogMessage message,
boolean nonBlocking)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void |
injectMessage(IRogMessage message,
boolean nonBlocking,
IEventAcknowledger acknowledger)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void |
injectMessage(IRogMessage message,
boolean nonBlocking,
int delay)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void |
injectMessage(IRogMessage message,
boolean nonBlocking,
int delay,
IEventAcknowledger acknowledger)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void |
injectMessage(IRogMessage message,
IEventAcknowledger acknowledger)
Enqueue a message into an application's
AepEngine's event multiplexer. |
void injectMessage(IRogMessage message)
AepEngine's event multiplexer.
This method is the same as injectMessage(message, false, defaultInjectionDelay, null).
(where default injection delay is set by TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAY).
message - The message to enqueue.AepEngine.injectMessage(IRogMessage)void injectMessage(IRogMessage message, IEventAcknowledger acknowledger)
AepEngine's event multiplexer.
This method is the same as injectMessage(message, false, defaultInjectionDelay, acknowledger).
(where default injection delay is set by TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAY).
message - The message to enqueue.acknowledger - The acknowledger that will be invoked when the processing of the transaction
containing the injected message is complete. Note that such notifications will only occur on
engines operating in the Primary role. This parameter can be null.AepEngine.injectMessage(IRogMessage, IEventAcknowledger)void injectMessage(IRogMessage message, boolean nonBlocking)
AepEngine's event multiplexer.
This method is the same as injectMessage(message, nonBlocking, defaultInjectionDelay, null)
(where default injection delay is set by TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAY).
message - The message to enqueue.nonBlocking - Indicates whether the multiplexing should be a
non-blocking action or not. If blocking, then the calling thread
will block if the engine's input multiplexer queue is full and wait until
space is available. If non-blocking, then the method will not
wait but rather enque the message in a feeder queue fronting the engine's
input multiplexer queue.AepEngine.injectMessage(IRogMessage, boolean),
TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAYvoid injectMessage(IRogMessage message, boolean nonBlocking, IEventAcknowledger acknowledger)
AepEngine's event multiplexer.
This method is the same as injectMessage(message, nonBlocking, defaultInjectionDelay, acknowledger)
(where default injection delay is set by TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAY).
message - The message to enqueue.nonBlocking - Indicates whether the multiplexing should be a
non-blocking action or not. If blocking, then the calling thread
will block if the engine's input multiplexer queue is full and wait until
space is available. If non-blocking, then the method will not
wait but rather enque the message in a feeder queue fronting the engine's
input multiplexer queue.acknowledger - The acknowledger that will be invoked when the processing of the transaction
containing the injected message is complete. Note that such notifications will only occur on
engines operating in the Primary role. This parameter can be null.AepEngine.injectMessage(IRogMessage, boolean),
TopicOrientedApplication.PROP_DEFAULT_INJECTION_DELAYvoid injectMessage(IRogMessage message, boolean nonBlocking, int delay)
AepEngine's event multiplexer.
This method is the same as the corresponding AepEngine.injectMessage(IRogMessage, boolean, int, IEventAcknowledger)
method except that this method disallows injection of message from the AepEngine's
dispatch thread (i.e. from a message handler).
message - The IRogMessage to enqueue.nonBlocking - Indicates whether the multiplexing should be a
non-blocking action or not. If blocking, then the calling thread
will block if the engine's input multiplexer queue is full and wait until
space is available. If non-blocking, then the method will not
wait but rather enque the message in a feeder queue fronting the engine's
input multiplexer queue.delay - The delay in milliseconds at which the message should be injected.IllegalStateException - If the underlying AepEngine has not been started.UnsupportedOperationException - if this is called from the AepEngine's dispatch therad (i.e. a message/event handler).void injectMessage(IRogMessage message, boolean nonBlocking, int delay, IEventAcknowledger acknowledger)
AepEngine's event multiplexer.
This method is the same as the corresponding AepEngine.injectMessage(IRogMessage, boolean, int, IEventAcknowledger)
method except that this method disallows injection of message from the AepEngine's
dispatch thread (i.e. from a message handler).
message - The IRogMessage to enqueue.nonBlocking - Indicates whether the multiplexing should be a
non-blocking action or not. If blocking, then the calling thread
will block if the engine's input multiplexer queue is full and wait until
space is available. If non-blocking, then the method will not
wait but rather enque the message in a feeder queue fronting the engine's
input multiplexer queue.delay - The delay in milliseconds at which the message should be injected.acknowledger - The acknowledger that will be invoked when the processing of the transaction
containing the injected message is complete. Note that such notifications will only occur on
engines operating in the Primary role. This parameter can be null.IllegalStateException - If the underlying AepEngine has not been started.UnsupportedOperationException - if this is called from the AepEngine's dispatch therad (i.e. a message/event handler).Copyright © 2016 Neeve Research, LLC. All Rights Reserved.