public abstract class AbstractPubSubInvalidationsAccumulator<T extends SerializableAccumulableInvalidations> extends AbstractPubSubBroker<T>
PubSubService
.Modifier and Type | Field and Description |
---|---|
protected T |
bufferedInvalidations |
DISCRIMINATOR_SEP, discriminatorBytes, topic
Constructor and Description |
---|
AbstractPubSubInvalidationsAccumulator() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this broker and releases resources.
|
void |
initialize(String topic,
String discriminator)
Initializes the broker.
|
abstract T |
newInvalidations()
Constructs new empty invalidations, of type
T . |
void |
receivedMessage(T invalidations)
Callback implementing the delivery of a message from another node.
|
T |
receiveInvalidations()
Receives invalidations from other nodes.
|
void |
sendInvalidations(T invalidations)
Sends invalidations to other nodes.
|
deserialize, scanDiscriminator, sendMessage, subscriber
protected volatile T extends SerializableAccumulableInvalidations bufferedInvalidations
public AbstractPubSubInvalidationsAccumulator()
public abstract T newInvalidations()
T
.public void initialize(String topic, String discriminator)
AbstractPubSubBroker
initialize
in class AbstractPubSubBroker<T extends SerializableAccumulableInvalidations>
topic
- the topicdiscriminator
- the discriminatorpublic void close()
AbstractPubSubBroker
close
in class AbstractPubSubBroker<T extends SerializableAccumulableInvalidations>
public void sendInvalidations(T invalidations)
public void receivedMessage(T invalidations)
AbstractPubSubBroker
receivedMessage
in class AbstractPubSubBroker<T extends SerializableAccumulableInvalidations>
invalidations
- the received messagepublic T receiveInvalidations()
Copyright © 2018 Nuxeo. All rights reserved.