Package com.scaleout.client.caching
Class UuidKeyEncoder
The
UuidKeyEncoder
is an implementation of a KeyEncoder
for UUID
keys compatible with the SOSS-JNC API.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UuidKeyEncoder
public UuidKeyEncoder()Construct a key encoder forUUID
keys.
-
-
Method Details
-
fromBytes
Returns the original byte[] key.- Specified by:
fromBytes
in classKeyEncoder<UUID>
- Parameters:
keyAsBytes
- the 32 byte encoded key- Returns:
- the byte[] key
-
encode
Encodes theUUID
key.- Specified by:
encode
in classKeyEncoder<UUID>
- Parameters:
key
- theUUID
key- Returns:
- the
KeyEncodingResult
-