Package io.lettuce.core
Class CommandListenerWriter.CommandListenerMulticaster
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commandFailed(CommandFailedEvent event)
Listener for command failure events.void
commandStarted(CommandStartedEvent event)
Listener for command started events.void
commandSucceeded(CommandSucceededEvent event)
Listener for command completed events.
-
-
-
Constructor Detail
-
CommandListenerMulticaster
public CommandListenerMulticaster(List<CommandListener> listeners)
-
-
Method Detail
-
commandStarted
public void commandStarted(CommandStartedEvent event)
Description copied from interface:CommandListener
Listener for command started events.- Specified by:
commandStarted
in interfaceCommandListener
- Parameters:
event
- the event.
-
commandSucceeded
public void commandSucceeded(CommandSucceededEvent event)
Description copied from interface:CommandListener
Listener for command completed events.- Specified by:
commandSucceeded
in interfaceCommandListener
- Parameters:
event
- the event.
-
commandFailed
public void commandFailed(CommandFailedEvent event)
Description copied from interface:CommandListener
Listener for command failure events.- Specified by:
commandFailed
in interfaceCommandListener
- Parameters:
event
- the event.
-
-