public class NotifyTemplateReplicaProducer extends Object implements ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
ISingleStageReplicaDataProducer.CloseStatus
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
_logger |
protected Object |
_requestContext |
FORCED_CLOSE_WAIT_TIME
Constructor and Description |
---|
NotifyTemplateReplicaProducer(SpaceEngine engine,
Object requestContext) |
Modifier and Type | Method and Description |
---|---|
protected ITemplatePacket |
buildNotifyTemplatePacket(NotifyTemplateHolder templateHolder,
long ttl) |
ISingleStageReplicaDataProducer.CloseStatus |
close(boolean forced)
Closes the producer, frees up resources held in order to service the replica request.
|
String |
dumpState() |
protected String |
getDumpName() |
protected String |
getLogPrefix() |
String |
getName() |
protected boolean |
isRelevant(NotifyTemplateHolder notifyTemplate) |
NotifyTemplateReplicaData |
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 |
IReplicationFilterEntry |
toFilterEntry(NotifyTemplateReplicaData data) |
protected static final org.slf4j.Logger _logger
protected final Object _requestContext
public NotifyTemplateReplicaProducer(SpaceEngine engine, Object requestContext)
public NotifyTemplateReplicaData produceNextData(ISynchronizationCallback syncCallback)
ISingleStageReplicaDataProducer
#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 correctnessproduceNextData
in interface ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
syncCallback
- callback to the synchronization processor that needs to be called safely
under lockpublic ISingleStageReplicaDataProducer.CloseStatus close(boolean forced)
ISingleStageReplicaDataProducer
close
in interface ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
protected boolean isRelevant(NotifyTemplateHolder notifyTemplate)
protected ITemplatePacket buildNotifyTemplatePacket(NotifyTemplateHolder templateHolder, long ttl)
ttl
- public IReplicationFilterEntry toFilterEntry(NotifyTemplateReplicaData data)
toFilterEntry
in interface ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
protected String getLogPrefix()
public String dumpState()
dumpState
in interface ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
protected String getDumpName()
public String getName()
getName
in interface ISingleStageReplicaDataProducer<NotifyTemplateReplicaData>
Copyright © GigaSpaces.