java.lang.Object
io.lettuce.core.CommandListenerWriter.CommandListenerMulticaster
- All Implemented Interfaces:
CommandListener
- Enclosing class:
- CommandListenerWriter
public static class CommandListenerWriter.CommandListenerMulticaster extends Object implements CommandListener
Wraps multiple command listeners into one multicaster.
- Since:
- 6.1
- Author:
- Mikhael Sokolov
-
Constructor Summary
Constructors Constructor Description CommandListenerMulticaster(List<CommandListener> listeners) -
Method Summary
Modifier and Type Method Description voidcommandFailed(CommandFailedEvent event)Listener for command failure events.voidcommandStarted(CommandStartedEvent event)Listener for command started events.voidcommandSucceeded(CommandSucceededEvent event)Listener for command completed events.
-
Constructor Details
-
CommandListenerMulticaster
-
-
Method Details
-
commandStarted
Description copied from interface:CommandListenerListener for command started events.- Specified by:
commandStartedin interfaceCommandListener- Parameters:
event- the event.
-
commandSucceeded
Description copied from interface:CommandListenerListener for command completed events.- Specified by:
commandSucceededin interfaceCommandListener- Parameters:
event- the event.
-
commandFailed
Description copied from interface:CommandListenerListener for command failure events.- Specified by:
commandFailedin interfaceCommandListener- Parameters:
event- the event.
-