Class RedisMonitorEvent
java.lang.Object
com.blackrook.redis.event.RedisMonitorEvent
An event class that is emitted from a
RedisMonitorConnection whenever it receives
an event from the connection.- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptionString[]intgetDBId()intgetPort()longlongstatic RedisMonitorEventParses a string read by a MONITORed connection and turns it into an event.
-
Method Details
-
parse
Parses a string read by a MONITORed connection and turns it into an event.- Parameters:
monitorString- the Redis Monitor string to parse.- Returns:
- the monitor event emitted.
- Throws:
RedisParseException- if the monitor string is malformed.
-
getServerTimeSeconds
public long getServerTimeSeconds()- Returns:
- the server time of the event in seconds since the Epoch.
-
getServerTimeMicros
public long getServerTimeMicros()- Returns:
- the server time remainder of the event in microseconds.
-
getServerTime
-
getDBId
public int getDBId()- Returns:
- the originating Database id.
-
getAddress
- Returns:
- the originating IP address.
-
getPort
public int getPort()- Returns:
- the originating IP remote port.
-
getCommand
- Returns:
- the issued command.
-
getArguments
- Returns:
- the commands arguments.
-