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 forRedisMonitorListenerthat prints messages to aPrintStreamwhen 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 voidonMonitorEvent(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- thePrintStreamto dump output to.
-
-
Method Detail
-
onMonitorEvent
public void onMonitorEvent(RedisMonitorEvent event)
Description copied from interface:RedisMonitorListenerCalled when a MONITOR message is received.- Specified by:
onMonitorEventin interfaceRedisMonitorListener- Parameters:
event- the encapsulated event.- See Also:
RedisMonitorEvent
-
-