Package com.blackrook.redis.event
Class RedisMonitorDebugListener
- java.lang.Object
-
- com.blackrook.redis.event.RedisMonitorDebugListener
-
- All Implemented Interfaces:
RedisMonitorListener
public class RedisMonitorDebugListener extends Object implements RedisMonitorListener
An adapter class forRedisMonitorListener
that prints messages to aPrintStream
when events are heard.- Author:
- Matthew Tropiano
-
-
Constructor Summary
Constructors Constructor Description RedisMonitorDebugListener()
Creates a listener that dumps toSystem.out
.RedisMonitorDebugListener(PrintStream out)
Creates a listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMonitorEvent(RedisMonitorEvent event)
Called when a MONITOR message is received.
-
-
-
Constructor Detail
-
RedisMonitorDebugListener
public RedisMonitorDebugListener()
Creates a listener that dumps toSystem.out
.
-
RedisMonitorDebugListener
public RedisMonitorDebugListener(PrintStream out)
Creates a listener.- Parameters:
out
- thePrintStream
to dump output to.
-
-
Method Detail
-
onMonitorEvent
public void onMonitorEvent(RedisMonitorEvent event)
Description copied from interface:RedisMonitorListener
Called when a MONITOR message is received.- Specified by:
onMonitorEvent
in interfaceRedisMonitorListener
- Parameters:
event
- the encapsulated event.- See Also:
RedisMonitorEvent
-
-