@Deprecated public class MessagePathClassifier extends Object implements IntSupplier
MessagePathClassifier class is responsible for classifying message paths based on their histories.
This classifier allows messages to be grouped or identified based on patterns of their source IDs. It provides
mechanisms to associate a path ID with certain patterns of source IDs and to retrieve the appropriate path ID
for a given message history.
This class also implements IntSupplier, allowing the direct fetching of path ID for the current
MessageHistory.
| Constructor and Description |
|---|
MessagePathClassifier()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
MessagePathClassifier |
addPathForSourcesEnding(int pathId,
int... sources)
Deprecated.
Registers a path ID for message histories ending with a specific sequence of source IDs.
|
int |
getAsInt()
Deprecated.
|
int |
pathFor(MessageHistory messageHistory)
Deprecated.
Determines the path ID for a specific
MessageHistory. |
String |
toString()
Deprecated.
|
public MessagePathClassifier addPathForSourcesEnding(int pathId, int... sources)
This method enables the user to define how the classifier should categorize certain patterns of message history.
pathId - A unique identifier for the message path.sources - An ordered array of source IDs representing a pattern in the message history.public int getAsInt()
getAsInt in interface IntSupplierpublic int pathFor(MessageHistory messageHistory)
MessageHistory.messageHistory - The message history to classify.Copyright © 2024. All rights reserved.