Class ExchangeContext
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.ExchangeContext
-
public class ExchangeContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringIGNITE_EXCHANGE_COMPATIBILITY_VER_1Enables exchange compatibility with protocol version 1.
-
Constructor Summary
Constructors Constructor Description ExchangeContext(GridCacheSharedContext<?,?> cctx, boolean crd, GridDhtPartitionsExchangeFuture fut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangeDiscoveryEventsevents()booleanexchangeFreeSwitch()booleanfetchAffinityOnJoin()@Nullable Set<Integer>groupsAffinityRequestOnJoin()booleanmergeExchanges()booleanremapStaleCacheRequests()StringtoString()
-
-
-
Field Detail
-
IGNITE_EXCHANGE_COMPATIBILITY_VER_1
@SystemProperty("Enables the compatibility mode for the exchange protocol of version 1") public static final String IGNITE_EXCHANGE_COMPATIBILITY_VER_1
Enables exchange compatibility with protocol version 1.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExchangeContext
public ExchangeContext(GridCacheSharedContext<?,?> cctx, boolean crd, GridDhtPartitionsExchangeFuture fut)
- Parameters:
cctx- Context.crd- Coordinator flag.fut- Exchange future.
-
-
Method Detail
-
events
public ExchangeDiscoveryEvents events()
- Returns:
- Discovery events.
-
fetchAffinityOnJoin
public boolean fetchAffinityOnJoin()
- Returns:
Trueif on local join need fetch affinity per-group (old protocol), otherwise affinity is sent inGridDhtPartitionsFullMessage.
-
exchangeFreeSwitch
public boolean exchangeFreeSwitch()
- Returns:
Trueif it's safe to perform PME-free switch.
-
groupsAffinityRequestOnJoin
@Nullable public @Nullable Set<Integer> groupsAffinityRequestOnJoin()
- Returns:
- Groups to request affinity for.
-
mergeExchanges
public boolean mergeExchanges()
- Returns:
Trueif exchanges merge is allowed during current exchange.
-
remapStaleCacheRequests
public boolean remapStaleCacheRequests()
- Returns:
- Whether cache requests that were mapped to an outdated topology version should be forcibly remapped to the up-to-date one.
-
-