Package com.github.fppt.jedismock.server
Class RedisClient
java.lang.Object
com.github.fppt.jedismock.server.RedisClient
- All Implemented Interfaces:
Runnable
Created by Xiaolu on 2015/4/18.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close all the streams used by this client effectively closing the client.voidrun()voidsendResponse(Slice response, String respondingTo) Send a response due to a specific command.
-
Method Details
-
run
public void run() -
sendResponse
Send a response due to a specific command.- Parameters:
response- The respond to send.respondingTo- The reason for sending this response
-
close
public void close()Close all the streams used by this client effectively closing the client. Also signals the client to stop working.
-