Type Parameters:
K - Key type.
V - Value type.
public class EnumSetOutput<K,V,E extends Enum <E>>
extends CommandOutput <K,V,Set <E>>
Since:
6.1
Author:
Mikhael Sokolov, Mark Paluch
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method
Description
void
multi (int count)
Mark the beginning of a multi sequence (array).
void
set (ByteBuffer bytes)
Update the command output with a sequence of bytes, or null.
Methods inherited from class io.lettuce.core.output.CommandOutput
complete , decodeAscii , get , getError , hasError , multiArray , multiMap , multiPush , multiSet , set , set , set , setBigNumber , setError , setError , setSingle , toString
Constructor Details
EnumSetOutput
Parameters:
codec - Codec used to encode/decode keys and values, must not be null.
enumClass - Enum type.
enumValuePreprocessor - pre-processor for String values before looking up the enum value.
onUnknownValue - fallback Function to be called when an enum value cannot be looked up.
Method Details
set
Update the command output with a sequence of bytes, or
null. Concrete
CommandOutput implementations must
override this method to decode
bulk/bytes response values.
Overrides:
set in class CommandOutput <K ,V ,Set <E extends Enum <E >>>
Parameters:
bytes - The command output, or null.
multi
public void multi (int count)
Mark the beginning of a multi sequence (array).
Overrides:
multi in class CommandOutput <K ,V ,Set <E extends Enum <E >>>
Parameters:
count - expected number of elements in this multi sequence.