Class RedisClient

java.lang.Object
com.github.fppt.jedismock.server.RedisClient
All Implemented Interfaces:
Runnable

public class RedisClient extends Object implements Runnable
Created by Xiaolu on 2015/4/18.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • sendResponse

      public void sendResponse(Slice response, String respondingTo)
      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.