java.lang.Object | |
↳ | com.atlassian.jira.cluster.OfBizClusterMessageStore |
Responsible for storing and retrieving cluster messages in the underlying database.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CLAIMED_BY_NODE | ||||||||||
String | DESTINATION_NODE | ||||||||||
String | ENTITY | ||||||||||
String | ID | ||||||||||
String | MESSAGE | ||||||||||
String | MESSAGE_TIME | ||||||||||
String | SOURCE_NODE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a ClusterMessage and stores it in the underlying database
| |||||||||||
Get the id of the latest message in the store for a node..
| |||||||||||
Retrieves the messages destined for the given node, from a source node.
| |||||||||||
Stores the message in the underlying database.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a ClusterMessage and stores it in the underlying database
sourceNode | the ID of the source node (required) |
---|---|
destinationNode | the ID of the destination node (required) |
message | the message to send (required) |
Get the id of the latest message in the store for a node.. That is the message with the highest id or null if there are no messages.
nodeId | the id of the node. |
---|
Retrieves the messages destined for the given node, from a source node. Returns messages with either the specific node id, or destined for all, but they must have been sent from another node - no listening to your own messages. We process each source node separately because the message Ids are not monotonically increasing across nodes.
sourceNode | The sending node |
---|---|
destinationNode | The listening node |
afterMessageId | Only messages with a higher Message Id than this id will be returned. If starting beyond is null will return all messages for the source destinationNode pair. |
Stores the message in the underlying database.
message | - the message to store in the underlying table |
---|