public class EventSenderBootstrap
extends java.lang.Object
EventSenderBootstrap class provides functionality to send event on service instance startup.
isStrict parameter defines object behavior in exception handling. If isStrict is true bootstrap
falls with exception when during send process any error occurred. If is's false object ignores all error, just log.| Constructor and Description |
|---|
EventSenderBootstrap(EventFactory factory,
org.ametiste.scm.messaging.sender.EventSender sender,
java.net.URI target,
boolean isStrict)
Create ready for use
EventSenderBootstrap obejct. |
| Modifier and Type | Method and Description |
|---|---|
void |
send()
Send event to target service.
|
public EventSenderBootstrap(EventFactory factory, org.ametiste.scm.messaging.sender.EventSender sender, java.net.URI target, boolean isStrict)
EventSenderBootstrap obejct.factory - EventFactory that creates startup event.sender - EventSender instance.target - URI for send message.isStrict - flag that define errors processing policy.