Class IgniteTxMappingsImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.distributed.near.IgniteTxMappingsImpl
-
- All Implemented Interfaces:
IgniteTxMappings
public class IgniteTxMappingsImpl extends Object implements IgniteTxMappings
-
-
Constructor Summary
Constructors Constructor Description IgniteTxMappingsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears this mappings.booleanempty()GridDistributedTxMappingget(UUID nodeId)@Nullable GridDistributedTxMappinglocalMapping()Collection<GridDistributedTxMapping>mappings()voidput(GridDistributedTxMapping mapping)GridDistributedTxMappingremove(UUID nodeId)booleansingle()@Nullable GridDistributedTxMappingsingleMapping()StringtoString()
-
-
-
Method Detail
-
clear
public void clear()
Clears this mappings.- Specified by:
clearin interfaceIgniteTxMappings
-
empty
public boolean empty()
- Specified by:
emptyin interfaceIgniteTxMappings- Returns:
Trueif there are no mappings.
-
get
public GridDistributedTxMapping get(UUID nodeId)
- Specified by:
getin interfaceIgniteTxMappings- Parameters:
nodeId- Node ID.- Returns:
- Node mapping.
-
put
public void put(GridDistributedTxMapping mapping)
- Specified by:
putin interfaceIgniteTxMappings- Parameters:
mapping- Mapping.
-
remove
public GridDistributedTxMapping remove(UUID nodeId)
- Specified by:
removein interfaceIgniteTxMappings- Parameters:
nodeId- Node ID.- Returns:
- Removed mapping.
-
localMapping
@Nullable public @Nullable GridDistributedTxMapping localMapping()
- Specified by:
localMappingin interfaceIgniteTxMappings- Returns:
- Mapping for local node.
-
single
public boolean single()
- Specified by:
singlein interfaceIgniteTxMappings- Returns:
Trueif this is single mapping.
-
singleMapping
@Nullable public @Nullable GridDistributedTxMapping singleMapping()
- Specified by:
singleMappingin interfaceIgniteTxMappings- Returns:
- Non null instance if this mappings contain only one mapping.
-
mappings
public Collection<GridDistributedTxMapping> mappings()
- Specified by:
mappingsin interfaceIgniteTxMappings- Returns:
- All mappings.
-
-