Class InsightsEventPublisher
java.lang.Object
com.avoka.fc.core.service.insights.InsightsEventPublisher
Provides a Insights event publisher class.
- Since:
- 17.10.4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The Insights Event Types. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
send()
Send the Insights transaction event.setEventType
(InsightsEventPublisher.EventType eventType) Set the Insights event type.Set the Insights job to publishsetJobAction
(JobAction jobAction) Set the Insights job action to publishsetJobStep
(JobStep jobStep) Set the Insights job step to publishSet the Insights event name to publish.setSubmission
(Submission submission) Set the Insights submission event to publishSet the Insights event value to publish.
-
Constructor Details
-
InsightsEventPublisher
public InsightsEventPublisher()
-
-
Method Details
-
setEventType
Set the Insights event type.- Parameters:
eventType
- the Insights event type- Returns:
- the event publisher
-
setName
Set the Insights event name to publish.- Parameters:
name
- the Insights event name to publish- Returns:
- the event publisher
- Since:
- 18.5.0
-
setValue
Set the Insights event value to publish.- Parameters:
value
- the Insights event value to publish- Returns:
- the event publisher
-
setSubmission
Set the Insights submission event to publish- Parameters:
submission
- the Insights submission event to publish- Returns:
- the event publisher
-
setJob
Set the Insights job to publish- Parameters:
job
-- Returns:
-
setJobStep
Set the Insights job step to publish- Parameters:
jobStep
-- Returns:
-
setJobAction
Set the Insights job action to publish- Parameters:
jobAction
-- Returns:
-
send
public boolean send()Send the Insights transaction event. This method will log any errors which occur to the Error Log table and return false if the event could not be sent.- Returns:
- true if the event was sent or false otherwise
-