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