Class DynamicAsyncSourceGroupConfigHolder
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.config.DynamicSourceGroupConfigHolder
com.gigaspaces.internal.cluster.node.impl.config.DynamicAsyncSourceGroupConfigHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class DynamicSourceGroupConfigHolder
DynamicSourceGroupConfigHolder.IDynamicSourceGroupStateListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SourceGroupConfiggenerateConfigWithUpdatedFilterAndLifecycle(SourceGroupConfig config, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles) Rebuilds the group config with an updated filter/lifecycle map, preserving the exact same member list (unlikeDynamicSourceGroupConfigHolder.generateUpdatedConfig(String, SourceGroupConfig, BacklogConfig, Map, Map, Object)/DynamicSourceGroupConfigHolder.generateNewConfigWithoutMember(String, BacklogConfig, Map, Map, SourceGroupConfig), which add/remove a member).protected SourceGroupConfiggenerateNewConfigWithoutMember(String memberName, BacklogConfig backlogConfig, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles, SourceGroupConfig config) protected SourceGroupConfiggenerateUpdatedConfig(String memberName, SourceGroupConfig config, BacklogConfig backlogConfig, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles, Object customMetadata) Methods inherited from class DynamicSourceGroupConfigHolder
addListener, addMember, addMember, containsMember, getConfig, getConfigWithMemberBeingAdded, reattachMember, removeMember, replaceMember, toString
-
Constructor Details
-
DynamicAsyncSourceGroupConfigHolder
-
-
Method Details
-
generateUpdatedConfig
protected SourceGroupConfig generateUpdatedConfig(String memberName, SourceGroupConfig config, BacklogConfig backlogConfig, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles, Object customMetadata) - Overrides:
generateUpdatedConfigin classDynamicSourceGroupConfigHolder
-
generateConfigWithUpdatedFilterAndLifecycle
protected SourceGroupConfig generateConfigWithUpdatedFilterAndLifecycle(SourceGroupConfig config, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles) Description copied from class:DynamicSourceGroupConfigHolderRebuilds the group config with an updated filter/lifecycle map, preserving the exact same member list (unlikeDynamicSourceGroupConfigHolder.generateUpdatedConfig(String, SourceGroupConfig, BacklogConfig, Map, Map, Object)/DynamicSourceGroupConfigHolder.generateNewConfigWithoutMember(String, BacklogConfig, Map, Map, SourceGroupConfig), which add/remove a member). Used byDynamicSourceGroupConfigHolder.reattachMember(String, IReplicationChannelDataFilter, BacklogMemberLimitationConfig, Object, DynamicSourceGroupMemberLifeCycle).Subclasses that carry extra state on top of the base
SourceGroupConfig(e.g.ReliableAsyncSourceGroupConfig) MUST override this to preserve their own runtime type here too - constructing a plainSourceGroupConfigsilently downgrades the config, breaking any code downstream that depends on the subtype (this caused an actual PIC-6261 regression: reattach registered cleanly but this exact type loss meant no notifications were ever delivered afterward).- Overrides:
generateConfigWithUpdatedFilterAndLifecyclein classDynamicSourceGroupConfigHolder- Since:
- 18.0 (PIC-6261) - see
DynamicSourceGroupConfigHolder.generateConfigWithUpdatedFilterAndLifecycle(SourceGroupConfig, Map, Map)for why this override exists: the base implementation would silently downgrade the config to a plain SourceGroupConfig, losing the per-member AsyncChannelConfig this subtype carries.
-
generateNewConfigWithoutMember
protected SourceGroupConfig generateNewConfigWithoutMember(String memberName, BacklogConfig backlogConfig, Map<String, IReplicationChannelDataFilter> filters, Map<String, DynamicSourceGroupMemberLifeCycle> lifeCycles, SourceGroupConfig config) - Overrides:
generateNewConfigWithoutMemberin classDynamicSourceGroupConfigHolder
-