public interface IReplicationPacketDataProducer<T extends IReplicationPacketData<?>> extends IReplicationPacketEntryDataContentExtractor
IReplicationPacketData
Modifier and Type | Method and Description |
---|---|
void |
completePacketDataContent(T data) |
T |
convertData(T data,
ReplicationMultipleOperationType convertToOperation,
PlatformLogicalVersion targetMemberVersion)
Converts the given data
|
IReplicationPacketEntryData |
convertEntryData(IReplicationPacketEntryData entryData,
ReplicationEntryDataConversionMetadata metadata,
PlatformLogicalVersion targetMemberVersion)
Converts the given entry data to the specified operation
|
T |
convertSingleEntryData(T singleEntryData,
ReplicationEntryDataConversionMetadata metadata,
PlatformLogicalVersion targetMemberVersion)
Convert the given data that has a single entry (
IReplicationPacketData.isSingleEntryData()
must be true) to the specified operation |
T |
createEmptyMultipleEntryData(T data)
create an empty data of the same type of the given data, this data must not be
IReplicationPacketData.isSingleEntryData() |
IDataConsumeFix |
createFix(IDataConsumeResult errorResult,
T errorData)
Creates a fix for the given error result, that fixed should be applied at the corresponding
IReplicationPacketDataConsumer |
T |
createGenericOperationData(Object operationData,
ReplicationSingleOperationType operationType,
ReplicationOutContext entireContext) |
T |
createSingleOperationData(IEntryHolder entryHolder,
ReplicationSingleOperationType operationType,
ReplicationOutContext replicationOutContext)
Convert a single entry operation to a representing
IReplicationPacketData |
T |
createTransactionOperationData(ServerTransaction transaction,
ArrayList<IEntryHolder> lockedEntries,
ReplicationOutContext replicationOutContext,
ReplicationMultipleOperationType operationType)
Convert a transaction operation to a representing
IReplicationPacketData |
Iterable<IReplicationFilterEntry> |
toFilterEntries(T data)
Transform generated data to filter entry in order to be passed to a filter
|
getCustomContent, getMainEntryData, getMainTypeName, getSecondaryEntryData, requiresConversion, setSerializeWithFullContent
T createSingleOperationData(IEntryHolder entryHolder, ReplicationSingleOperationType operationType, ReplicationOutContext replicationOutContext)
IReplicationPacketData
entryHolder
- operation entryoperationType
- operation typeIReplicationPacketData
T createTransactionOperationData(ServerTransaction transaction, ArrayList<IEntryHolder> lockedEntries, ReplicationOutContext replicationOutContext, ReplicationMultipleOperationType operationType)
IReplicationPacketData
T createGenericOperationData(Object operationData, ReplicationSingleOperationType operationType, ReplicationOutContext entireContext)
IDataConsumeFix createFix(IDataConsumeResult errorResult, T errorData)
IReplicationPacketDataConsumer
errorResult
- the result that needs to be fixederrorData
- the data that created the error while being consumedIterable<IReplicationFilterEntry> toFilterEntries(T data)
T convertSingleEntryData(T singleEntryData, ReplicationEntryDataConversionMetadata metadata, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
IReplicationPacketData.isSingleEntryData()
must be true) to the specified operationsingleEntryData
- data to convertmetadata
- conversion metadataReplicationPacketEntryDataConversionException
- if the conversion is illegalT convertData(T data, ReplicationMultipleOperationType convertToOperation, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
data
- data to convertconvertToOperation
- which operation to convert toReplicationPacketEntryDataConversionException
- if the conversion is illegalIReplicationPacketEntryData convertEntryData(IReplicationPacketEntryData entryData, ReplicationEntryDataConversionMetadata metadata, PlatformLogicalVersion targetMemberVersion) throws ReplicationPacketEntryDataConversionException
entryData
- entry data to convertmetadata
- conversion metadataReplicationPacketEntryDataConversionException
- if the conversion is illegalT createEmptyMultipleEntryData(T data)
IReplicationPacketData.isSingleEntryData()
data
- template for data type creationvoid completePacketDataContent(T data)
Copyright © GigaSpaces.