Package org.nuxeo.runtime.pubsub
Class ClusterActionServiceImpl.ClusterActionPubSub
- java.lang.Object
-
- org.nuxeo.runtime.pubsub.AbstractPubSubBroker<ClusterActionMessage>
-
- org.nuxeo.runtime.pubsub.ClusterActionServiceImpl.ClusterActionPubSub
-
- Enclosing class:
- ClusterActionServiceImpl
public class ClusterActionServiceImpl.ClusterActionPubSub extends AbstractPubSubBroker<ClusterActionMessage>
PubSub to propagate an action to all nodes in the cluster.- Since:
- 2023.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLUSTER_ACTION_PUB_SUB_TOPIC
-
Fields inherited from class org.nuxeo.runtime.pubsub.AbstractPubSubBroker
DISCRIMINATOR_SEP, discriminatorBytes, topic
-
-
Constructor Summary
Constructors Constructor Description ClusterActionPubSub()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterActionMessage
deserialize(InputStream in)
Deserializes anInputStream
into a message, ornull
.void
receivedMessage(ClusterActionMessage message)
Callback implementing the delivery of a message from another node.void
sendMessage(ClusterActionMessage message)
Sends a message to other nodes.-
Methods inherited from class org.nuxeo.runtime.pubsub.AbstractPubSubBroker
close, initialize, scanDiscriminator, subscriber
-
-
-
-
Field Detail
-
CLUSTER_ACTION_PUB_SUB_TOPIC
public static final String CLUSTER_ACTION_PUB_SUB_TOPIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public ClusterActionMessage deserialize(InputStream in) throws IOException
Description copied from class:AbstractPubSubBroker
Deserializes anInputStream
into a message, ornull
.- Specified by:
deserialize
in classAbstractPubSubBroker<ClusterActionMessage>
- Throws:
IOException
-
sendMessage
public void sendMessage(ClusterActionMessage message)
Description copied from class:AbstractPubSubBroker
Sends a message to other nodes.- Overrides:
sendMessage
in classAbstractPubSubBroker<ClusterActionMessage>
-
receivedMessage
public void receivedMessage(ClusterActionMessage message)
Description copied from class:AbstractPubSubBroker
Callback implementing the delivery of a message from another node.- Specified by:
receivedMessage
in classAbstractPubSubBroker<ClusterActionMessage>
- Parameters:
message
- the received message
-
-