public class DynamicCacheChangeBatch extends Object implements DiscoveryCustomMessage
| Constructor and Description |
|---|
DynamicCacheChangeBatch(Collection<DynamicCacheChangeRequest> reqs) |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryCustomMessage |
ackMessage()
Called when custom message has been handled by all nodes.
|
DiscoCache |
createDiscoCache(GridDiscoveryManager mgr,
AffinityTopologyVersion topVer,
DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.
|
boolean |
exchangeNeeded() |
IgniteUuid |
id() |
boolean |
isMutable() |
Collection<DynamicCacheChangeRequest> |
requests() |
Set<String> |
restartingCaches() |
DynamicCacheChangeBatch |
restartingCaches(Set<String> restartingCaches) |
boolean |
startCaches() |
void |
startCaches(boolean startCaches) |
boolean |
stopProcess()
|
String |
toString() |
public DynamicCacheChangeBatch(Collection<DynamicCacheChangeRequest> reqs)
reqs - Requests.public IgniteUuid id()
id in interface DiscoveryCustomMessage@Nullable public DiscoveryCustomMessage ackMessage()
ackMessage in interface DiscoveryCustomMessagenull if ack is not required.public boolean isMutable()
isMutable in interface DiscoveryCustomMessageTrue if message can be modified during listener notification. Changes will be sent to next nodes.public boolean stopProcess()
stopProcess in interface DiscoveryCustomMessageTrue if message should not be sent to others nodes after it was processed on coordinator.public DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
createDiscoCache in interface DiscoveryCustomMessagemgr - Discovery manager.topVer - New topology version.discoCache - Current discovery cache.public Collection<DynamicCacheChangeRequest> requests()
public boolean exchangeNeeded()
True if request should trigger partition exchange.public boolean startCaches()
True if required to start all caches on client node.public DynamicCacheChangeBatch restartingCaches(Set<String> restartingCaches)
restartingCaches - Restarting caches.public void startCaches(boolean startCaches)
startCaches - True if required to start all caches on client node.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019