public final class MappableApamaEvent
extends java.lang.Object
Threading: Immutable.
Constructor and Description |
---|
MappableApamaEvent(Event event,
java.lang.String uniqueMessageId,
java.lang.String messageSourceId)
Create a MappableApamaEvent from an Event object.
|
MappableApamaEvent(java.lang.String eventString,
java.lang.String uniqueMessageId,
java.lang.String messageSourceId)
Create a MappableApamaEvent from an event string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventString() |
java.lang.String |
getMessageSourceId() |
java.lang.String |
getUniqueMessageId() |
java.lang.String |
toString() |
public MappableApamaEvent(java.lang.String eventString, java.lang.String uniqueMessageId, java.lang.String messageSourceId)
eventString
- Never null. Usually this will be generated by calling Event.getText()
.uniqueMessageId
- An application-defined string uniquely identifying this message.
May be null, if duplicate detection is not required.messageSourceId
- An application-defined string uniquely identifying the process/component that sent the
message, used to partition expiry of duplicate detection between message sources that could fail independently.
Typically this would be a GUID set on a per-connection/per-process basis (or, optionally on a per-sender basis).
May be null, if duplicate detection is not required or if this information is not available - although when dup
detection is available it is strongly recommended that this is provided.public MappableApamaEvent(Event event, java.lang.String uniqueMessageId, java.lang.String messageSourceId)
event
- An event object. Never null.uniqueMessageId
- An application-defined string uniquely identifying this message.
May be null, if duplicate detection is not required.messageSourceId
- An application-defined string uniquely identifying the process/component that sent the
message, used to partition expiry of duplicate detection between message sources that could fail independently.
Typically this would be a GUID set on a per-connection/per-process basis (or, optionally on a per-sender basis).
May be null, if duplicate detection is not required or if this information is not available - although when dup
detection is available it is strongly recommended that this is provided.public java.lang.String getEventString()
public java.lang.String getUniqueMessageId()
public java.lang.String getMessageSourceId()
public java.lang.String toString()
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 2013-2019 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.