Interface IgniteTxMappings
-
- All Known Implementing Classes:
IgniteTxMappingsImpl,IgniteTxMappingsSingleImpl
public interface IgniteTxMappings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clears this mappings.booleanempty()@Nullable GridDistributedTxMappingget(UUID nodeId)@Nullable GridDistributedTxMappinglocalMapping()Collection<GridDistributedTxMapping>mappings()voidput(GridDistributedTxMapping mapping)@Nullable GridDistributedTxMappingremove(UUID nodeId)booleansingle()@Nullable GridDistributedTxMappingsingleMapping()
-
-
-
Method Detail
-
clear
void clear()
Clears this mappings.
-
empty
boolean empty()
- Returns:
Trueif there are no mappings.
-
get
@Nullable @Nullable GridDistributedTxMapping get(UUID nodeId)
- Parameters:
nodeId- Node ID.- Returns:
- Node mapping.
-
put
void put(GridDistributedTxMapping mapping)
- Parameters:
mapping- Mapping.
-
remove
@Nullable @Nullable GridDistributedTxMapping remove(UUID nodeId)
- Parameters:
nodeId- Node ID.- Returns:
- Removed mapping.
-
localMapping
@Nullable @Nullable GridDistributedTxMapping localMapping()
- Returns:
- Mapping for local node.
-
singleMapping
@Nullable @Nullable GridDistributedTxMapping singleMapping()
- Returns:
- Non null instance if this mappings contain only one mapping.
-
mappings
Collection<GridDistributedTxMapping> mappings()
- Returns:
- All mappings.
-
single
boolean single()
- Returns:
Trueif this is single mapping.
-
-