Class EntryReplicaProducer
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.replica.EntryReplicaProducer
- All Implemented Interfaces:
ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
- Direct Known Subclasses:
DirectPersisntecyEntryReplicaProducer
public class EntryReplicaProducer
extends Object
implements ISingleStageReplicaDataProducer<AbstractEntryReplicaData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.internal.cluster.node.impl.replica.ISingleStageReplicaDataProducer
ISingleStageReplicaDataProducer.CloseStatus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SpaceEnginekeeps already recovered UIDsprotected static final org.slf4j.LoggerFields inherited from interface com.gigaspaces.internal.cluster.node.impl.replica.ISingleStageReplicaDataProducer
FORCED_CLOSE_WAIT_TIME -
Constructor Summary
ConstructorsConstructorDescriptionEntryReplicaProducer(SpaceEngine engine, SpaceCopyReplicaParameters parameters, ITemplatePacket templatePacket, Object requestContext) -
Method Summary
Modifier and TypeMethodDescriptionclose(boolean forced) Closes the producer, frees up resources held in order to service the replica request.getName()voidbooleanisClosed()booleanprotected AbstractEntryReplicaDataproduceDataFromEntry(ISynchronizationCallback syncCallback, IEntryHolder entry) produceNextData(ISynchronizationCallback syncCallback) Creates the next entry that will be copied to the source space
-
Field Details
-
_logger
protected static final org.slf4j.Logger _logger -
_engine
keeps already recovered UIDs
-
-
Constructor Details
-
EntryReplicaProducer
public EntryReplicaProducer(SpaceEngine engine, SpaceCopyReplicaParameters parameters, ITemplatePacket templatePacket, Object requestContext)
-
-
Method Details
-
getRequestContext
-
produceNextData
Creates the next entry that will be copied to the source space- Specified by:
produceNextDatain interfaceISingleStageReplicaDataProducer<AbstractEntryReplicaData>- Parameters:
syncCallback- callback to the synchronization processor that needs to be called safely under lock- Returns:
- the next data to replicate or null if there is not more data
-
produceDataFromEntry
protected AbstractEntryReplicaData produceDataFromEntry(ISynchronizationCallback syncCallback, IEntryHolder entry) -
close
Description copied from interface:ISingleStageReplicaDataProducerCloses the producer, frees up resources held in order to service the replica request.- Specified by:
closein interfaceISingleStageReplicaDataProducer<AbstractEntryReplicaData>- Returns:
- CloseStatus - the status of the close operation, can be CLOSED and CLOSING (another thread is closing already)
-
toFilterEntry
- Specified by:
toFilterEntryin interfaceISingleStageReplicaDataProducer<AbstractEntryReplicaData>
-
getEngine
-
getParameters
-
isClosed
public boolean isClosed() -
isForcedClose
public boolean isForcedClose() -
increaseGeneratedDataCount
public void increaseGeneratedDataCount() -
dumpState
- Specified by:
dumpStatein interfaceISingleStageReplicaDataProducer<AbstractEntryReplicaData>
-
getName
- Specified by:
getNamein interfaceISingleStageReplicaDataProducer<AbstractEntryReplicaData>
-