public class NotificationReplicationChannelDataFilter extends ReliableAsyncChannelDataFilter
Modifier and Type | Class and Description |
---|---|
static class |
NotificationReplicationChannelDataFilter.DurableNotificationConversionFlags |
IReplicationChannelDataFilter.FilterOperation
Constructor and Description |
---|
NotificationReplicationChannelDataFilter(CacheManager cacheManager,
String groupName,
RegexCache regexCache,
SpaceTypeManager typeManager,
FilterManager filterManager,
NotifyTemplateHolder tHolder) |
Modifier and Type | Method and Description |
---|---|
TemplateInfo |
createTemplateInfo() |
void |
filterAfterReplicatedEntryData(IReplicationPacketEntryData data,
PlatformLogicalVersion targetLogicalVersion,
IReplicationPacketEntryDataContentExtractor contentExtractor,
Logger contextLogger)
Called after entry data was replicated successfully
|
ReplicationChannelEntryDataFilterResult |
filterBeforeReplicatingEntryData(IReplicationPacketEntryData packetEntryData,
PlatformLogicalVersion targetLogicalVersion,
IReplicationPacketEntryDataContentExtractor contentExtractor,
Logger contextLogger,
IReplicationPacketData<?> data)
Specifies whether the given entry data should pass the filter as is, be converted or removed
|
boolean |
filterBeforeReplicatingEntryDataHasSideEffects()
Specifies wheter the filter operations have a side effect and cannot be called more than once
for the same entry data
|
boolean |
filterBeforeReplicatingUnreliableOperation(IReplicationUnreliableOperation operation,
PlatformLogicalVersion targetLogicalVersion)
Specifies whether the given unreliable operation should pass the filter and not be removed
|
Object[] |
getConstructionArgument() |
NotifyTemplateHolder |
getNotifyTemplateHolder() |
IServerTypeDesc |
getTemplateTypeDesc() |
void |
initTemplate() |
boolean |
isTemplateOfType(String typeName) |
filterBeforeReplicatingData
public NotificationReplicationChannelDataFilter(CacheManager cacheManager, String groupName, RegexCache regexCache, SpaceTypeManager typeManager, FilterManager filterManager, NotifyTemplateHolder tHolder)
public IServerTypeDesc getTemplateTypeDesc()
public boolean isTemplateOfType(String typeName)
public TemplateInfo createTemplateInfo()
public ReplicationChannelEntryDataFilterResult filterBeforeReplicatingEntryData(IReplicationPacketEntryData packetEntryData, PlatformLogicalVersion targetLogicalVersion, IReplicationPacketEntryDataContentExtractor contentExtractor, Logger contextLogger, IReplicationPacketData<?> data)
IReplicationChannelDataFilter
targetLogicalVersion
- The logical version of the targetcontentExtractor
- extracts content from the datacontextLogger
- context Loggerpublic void initTemplate()
public boolean filterBeforeReplicatingUnreliableOperation(IReplicationUnreliableOperation operation, PlatformLogicalVersion targetLogicalVersion)
IReplicationChannelDataFilter
targetLogicalVersion
- The logical version of the targettrue
if the unreliable operation should not be filtered,
false
otherwisepublic void filterAfterReplicatedEntryData(IReplicationPacketEntryData data, PlatformLogicalVersion targetLogicalVersion, IReplicationPacketEntryDataContentExtractor contentExtractor, Logger contextLogger)
IReplicationChannelDataFilter
filterAfterReplicatedEntryData
in interface IReplicationChannelDataFilter
filterAfterReplicatedEntryData
in class AbstractReplicationChannelDataFilter
targetLogicalVersion
- The logical version of the targetcontentExtractor
- extracts content from the datacontextLogger
- context Loggerpublic boolean filterBeforeReplicatingEntryDataHasSideEffects()
IReplicationChannelDataFilter
filterBeforeReplicatingEntryDataHasSideEffects
in interface IReplicationChannelDataFilter
filterBeforeReplicatingEntryDataHasSideEffects
in class AbstractReplicationChannelDataFilter
public Object[] getConstructionArgument()
IReplicationChannelDataFilterBuilder
this is generally used when serializing the
filter between replication members (reliable async)public NotifyTemplateHolder getNotifyTemplateHolder()
Copyright © GigaSpaces.