Class ClientCacheChangeDummyDiscoveryMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.AbstractCachePartitionExchangeWorkerTask
-
- org.apache.ignite.internal.processors.cache.ClientCacheChangeDummyDiscoveryMessage
-
- All Implemented Interfaces:
Serializable,DiscoveryCustomMessage,CachePartitionExchangeWorkerTask
public class ClientCacheChangeDummyDiscoveryMessage extends AbstractCachePartitionExchangeWorkerTask implements DiscoveryCustomMessage
Dummy discovery message which is not really sent via ring, it is just added in local discovery worker queue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientCacheChangeDummyDiscoveryMessage(SecurityContext secCtx, UUID reqId, @Nullable Map<String,DynamicCacheChangeRequest> startReqs, @Nullable Set<String> cachesToClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DiscoveryCustomMessageackMessage()Called when custom message has been handled by all nodes.@Nullable DiscoCachecreateDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)Creates new discovery cache if message caused topology version change.IgniteUuidid()booleanisMutable()booleanskipForExchangeMerge()StringtoString()-
Methods inherited from class org.apache.ignite.internal.processors.cache.AbstractCachePartitionExchangeWorkerTask
securityContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage
stopProcess
-
-
-
-
Constructor Detail
-
ClientCacheChangeDummyDiscoveryMessage
public ClientCacheChangeDummyDiscoveryMessage(SecurityContext secCtx, UUID reqId, @Nullable @Nullable Map<String,DynamicCacheChangeRequest> startReqs, @Nullable @Nullable Set<String> cachesToClose)
- Parameters:
secCtx- Security context in which current task must be executed.reqId- Start request ID.startReqs- Caches start requests.cachesToClose- Cache to close.
-
-
Method Detail
-
skipForExchangeMerge
public boolean skipForExchangeMerge()
- Specified by:
skipForExchangeMergein interfaceCachePartitionExchangeWorkerTask- Returns:
Falseif exchange merge should stop if this task is found in exchange worker queue.
-
id
public IgniteUuid id()
- Specified by:
idin interfaceDiscoveryCustomMessage- Returns:
- Unique custom message ID.
-
ackMessage
@Nullable public @Nullable DiscoveryCustomMessage ackMessage()
Called when custom message has been handled by all nodes.- Specified by:
ackMessagein interfaceDiscoveryCustomMessage- Returns:
- Ack message or
nullif ack is not required.
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceDiscoveryCustomMessage- Returns:
Trueif message can be modified during listener notification. Changes will be sent to next nodes.
-
createDiscoCache
@Nullable public @Nullable DiscoCache createDiscoCache(GridDiscoveryManager mgr, AffinityTopologyVersion topVer, DiscoCache discoCache)
Creates new discovery cache if message caused topology version change.- Specified by:
createDiscoCachein interfaceDiscoveryCustomMessage- Parameters:
mgr- Discovery manager.topVer- New topology version.discoCache- Current discovery cache.- Returns:
- Reused discovery cache.
-
-