Class Pipeline

    • Constructor Detail

      • Pipeline

        public Pipeline()
    • Method Detail

      • setClient

        public void setClient​(Client client)
      • clear

        public void clear()
      • isInMulti

        public boolean isInMulti()
      • sync

        public void sync()
        Synchronize pipeline by reading all responses. This operation close the pipeline. In order to get return values from pipelined commands, capture the different Response<?> of the commands you execute.
      • syncAndReturnAll

        public List<Object> syncAndReturnAll()
        Synchronize pipeline by reading all responses. This operation close the pipeline. Whenever possible try to avoid using this version and use Pipeline.sync() as it won't go through all the responses and generate the right response type (usually it is a waste of time).
        Returns:
        A list of all the responses in the order you executed them.