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, useClusterActionServiceinsteadPubSub to propagate an action to all nodes in the cluster.- Since:
- 2021.25
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLUSTER_ACTION_PUB_SUB_TOPICDeprecated.static StringSTART_CONSUMER_ACTIONDeprecated.static StringSTOP_CONSUMER_ACTIONDeprecated.-
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 ClusterActiondeserialize(InputStream in)Deprecated.Deserializes anInputStreaminto a message, ornull.voidreceivedMessage(ClusterAction message)Deprecated.Callback implementing the delivery of a message from another node.voidsendClusterAction(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:AbstractPubSubBrokerDeserializes anInputStreaminto a message, ornull.- Specified by:
deserializein classAbstractPubSubBroker<ClusterAction>- Throws:
IOException
-
receivedMessage
public void receivedMessage(ClusterAction message)
Deprecated.Description copied from class:AbstractPubSubBrokerCallback implementing the delivery of a message from another node.- Specified by:
receivedMessagein classAbstractPubSubBroker<ClusterAction>- Parameters:
message- the received message
-
-