public class EventMessageConsumer extends Object implements ClusterMessageConsumer
Modifier and Type | Field and Description |
---|---|
static String |
IMPORT_FINISHED |
static String |
IMPORT_STARTED |
Constructor and Description |
---|
EventMessageConsumer(com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
static Message |
importFinishedMessage(Boolean success) |
static Message |
importStartedMessage() |
void |
receive(String channel,
String message,
String senderId)
Called by the ClusterMessagingService when there is a message waiting to be processed by a node.
|
public static final String IMPORT_STARTED
public static final String IMPORT_FINISHED
public EventMessageConsumer(com.atlassian.event.api.EventPublisher eventPublisher)
public static Message importStartedMessage()
public void receive(String channel, String message, String senderId)
ClusterMessageConsumer
receive
in interface ClusterMessageConsumer
channel
- The channel the message was sent tomessage
- The content of the messagesenderId
- The id of the node that raised the messageCopyright © 2002-2021 Atlassian. All Rights Reserved.