Class RedisConnection

    • Constructor Detail

      • RedisConnection

        public RedisConnection(RedisClient redisClient,
                               io.netty.channel.Channel channel,
                               RPromise<C> connectionPromise)
      • RedisConnection

        protected RedisConnection(RedisClient redisClient)
    • Method Detail

      • fireConnected

        public void fireConnected()
      • incUsage

        public int incUsage()
      • getUsage

        public int getUsage()
      • decUsage

        public int decUsage()
      • isPooled

        public boolean isPooled()
      • setPooled

        public void setPooled(boolean pooled)
      • isQueued

        public boolean isQueued()
      • setQueued

        public void setQueued(boolean queued)
      • setConnectedListener

        public void setConnectedListener(Runnable connectedListener)
      • fireDisconnected

        public void fireDisconnected()
      • setDisconnectedListener

        public void setDisconnectedListener(Runnable disconnectedListener)
      • getFrom

        public static <C extends RedisConnection> C getFrom(io.netty.channel.Channel channel)
      • getCurrentCommand

        public CommandData<?,?> getCurrentCommand()
      • getLastUsageTime

        public long getLastUsageTime()
      • setLastUsageTime

        public void setLastUsageTime(long lastUsageTime)
      • isOpen

        public boolean isOpen()
      • isActive

        public boolean isActive()
        Check is channel connected and ready for transfer
        Returns:
        true if so
      • updateChannel

        public void updateChannel(io.netty.channel.Channel channel)
      • await

        public <R> R await(RFuture<R> future)
      • send

        public <T,R> io.netty.channel.ChannelFuture send(CommandData<T,R> data)
      • send

        public io.netty.channel.ChannelFuture send(CommandsData data)
      • isClosed

        public boolean isClosed()
      • isFastReconnect

        public boolean isFastReconnect()
      • clearFastReconnect

        public void clearFastReconnect()
      • forceFastReconnectAsync

        public RFuture<Void> forceFastReconnectAsync()
      • getChannel

        public io.netty.channel.Channel getChannel()
        Access to Netty channel. This method is provided to use in debug info only.
        Returns:
        channel
      • closeAsync

        public io.netty.channel.ChannelFuture closeAsync()