Class NotifyTemplateReplicaProducer
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.replica.NotifyTemplateReplicaProducer
- All Implemented Interfaces:
ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
- Direct Known Subclasses:
BroadcastNotifyTemplateReplicaProducer
public class NotifyTemplateReplicaProducer
extends Object
implements ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.internal.cluster.node.impl.replica.ISingleStageReplicaDataProducer
ISingleStageReplicaDataProducer.CloseStatus -
Field Summary
FieldsFields inherited from interface com.gigaspaces.internal.cluster.node.impl.replica.ISingleStageReplicaDataProducer
FORCED_CLOSE_WAIT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ITemplatePacketbuildNotifyTemplatePacket(NotifyTemplateHolder templateHolder, long ttl) close(boolean forced) Closes the producer, frees up resources held in order to service the replica request.protected Stringprotected StringgetName()protected booleanisRelevant(NotifyTemplateHolder notifyTemplate) produceNextData(ISynchronizationCallback syncCallback) Produce next data needed for replica, this call will always be followed by#releaseLockedData(ISpaceReplicaData)if lockedData is true, it should keep that item represented by this data locked until the release is called This is done in order to ensure synchronization correctness
-
Field Details
-
_logger
protected static final org.slf4j.Logger _logger -
_requestContext
-
-
Constructor Details
-
NotifyTemplateReplicaProducer
-
-
Method Details
-
produceNextData
Description copied from interface:ISingleStageReplicaDataProducerProduce next data needed for replica, this call will always be followed by#releaseLockedData(ISpaceReplicaData)if lockedData is true, it should keep that item represented by this data locked until the release is called This is done in order to ensure synchronization correctness- Specified by:
produceNextDatain interfaceISingleStageReplicaDataProducer<NotifyTemplateReplicaData>- Parameters:
syncCallback- callback to the synchronization processor that needs to be called safely under lock- Returns:
- next data needed for replica, null if done. Once null is returns all executive calls must return null!
-
close
Description copied from interface:ISingleStageReplicaDataProducerCloses the producer, frees up resources held in order to service the replica request.- Specified by:
closein interfaceISingleStageReplicaDataProducer<NotifyTemplateReplicaData>- Returns:
- CloseStatus - the status of the close operation, can be CLOSED and CLOSING (another thread is closing already)
-
isRelevant
-
buildNotifyTemplatePacket
- Parameters:
ttl-
-
toFilterEntry
- Specified by:
toFilterEntryin interfaceISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
-
getLogPrefix
-
dumpState
- Specified by:
dumpStatein interfaceISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
-
getDumpName
-
getName
- Specified by:
getNamein interfaceISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
-