public class ReplicationPacketDataConsumer extends Object implements IReplicationPacketDataBatchConsumer<IExecutableReplicationPacketData<?>>
Constructor and Description |
---|
ReplicationPacketDataConsumer(SpaceTypeManager typeManager,
IDataConsumeFixFacade fixFacade,
ReplicationPacketDataMediator packetDataMediator) |
Modifier and Type | Method and Description |
---|---|
IExecutableReplicationPacketData<?> |
applyFix(IReplicationInContext context,
IExecutableReplicationPacketData<?> data,
IDataConsumeFix fix)
Apply a fix to a data, the fix is generated due to a failed consumption of
IReplicationPacketData |
IDataConsumeResult |
consume(IReplicationInContext context,
IExecutableReplicationPacketData<?> data,
IReplicationInFacade replicationInFacade,
IReplicationInFilterCallback inFilterCallback)
Consumes a
IReplicationPacketData and delegate the operation is represents to the
corresponding method at the given IReplicationInFacade |
IDataConsumeResult |
consumePendingPackets(IReplicationInBatchContext context,
IReplicationInFacade replicationInFacade)
Consume packets which are pending in the provided batch context.
|
IReplicationParticipantsMetadata |
extractParticipantsMetadata(IReplicationPacketData<?> data)
Extracts participants meta data for the provided replication packet data
|
SpaceTypeManager |
getTypeManager() |
IReplicationPacketData<?> |
merge(IReplicationPacketData<?>[] allParticipantsData,
IReplicationParticipantsMetadata participantsMetadata)
Merges data of multiple participants operations to a single operation data which will
eventually be executed as one.
|
Iterable<IReplicationFilterEntry> |
toFilterEntries(IReplicationInContext context,
IReplicationPacketData<?> data)
Transform generated data to filter entry in order to be passed to a filter
|
public ReplicationPacketDataConsumer(SpaceTypeManager typeManager, IDataConsumeFixFacade fixFacade, ReplicationPacketDataMediator packetDataMediator)
public IDataConsumeResult consume(IReplicationInContext context, IExecutableReplicationPacketData<?> data, IReplicationInFacade replicationInFacade, IReplicationInFilterCallback inFilterCallback)
IReplicationPacketDataConsumer
IReplicationPacketData
and delegate the operation is represents to the
corresponding method at the given IReplicationInFacade
consume
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
data
- operation to consume and translate to an operationreplicationInFacade
- facade to delegate the data as incoming replicationpublic IExecutableReplicationPacketData<?> applyFix(IReplicationInContext context, IExecutableReplicationPacketData<?> data, IDataConsumeFix fix) throws Exception
IReplicationPacketDataConsumer
IReplicationPacketData
applyFix
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
data
- data to fixfix
- fix to applyException
public Iterable<IReplicationFilterEntry> toFilterEntries(IReplicationInContext context, IReplicationPacketData<?> data)
IReplicationPacketDataConsumer
toFilterEntries
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
public IReplicationParticipantsMetadata extractParticipantsMetadata(IReplicationPacketData<?> data)
IReplicationPacketDataConsumer
extractParticipantsMetadata
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
public IReplicationPacketData<?> merge(IReplicationPacketData<?>[] allParticipantsData, IReplicationParticipantsMetadata participantsMetadata)
IReplicationPacketDataConsumer
merge
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
participantsMetadata
- TODOpublic IDataConsumeResult consumePendingPackets(IReplicationInBatchContext context, IReplicationInFacade replicationInFacade)
IReplicationPacketDataBatchConsumer
consumePendingPackets
in interface IReplicationPacketDataBatchConsumer<IExecutableReplicationPacketData<?>>
public SpaceTypeManager getTypeManager()
getTypeManager
in interface IReplicationPacketDataConsumer<IExecutableReplicationPacketData<?>>
Copyright © GigaSpaces.