Package org.redisson.api
Interface NameMapper
-
- All Known Implementing Classes:
DefaultNameMapper
public interface NameMapper
Maps Redisson object name.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static NameMapper
direct()
Returns input Redisson object name.String
map(String name)
Applies map function to inputname
String
unmap(String name)
Applies unmap function to input mappedname
to get original name.
-
-
-
Method Detail
-
map
String map(String name)
Applies map function to inputname
- Parameters:
name
- - original Redisson object name- Returns:
- mapped name
-
unmap
String unmap(String name)
Applies unmap function to input mappedname
to get original name.- Parameters:
name
- - mapped name- Returns:
- original Redisson object name
-
direct
static NameMapper direct()
Returns input Redisson object name. Used by default- Returns:
- NameMapper instance what returns input Redisson object name
-
-