Interface ClientResources

    • Method Detail

      • shutdown

        Future<Boolean> shutdown()
        Shutdown the ClientResources.
        Returns:
        eventually the success/failure of the shutdown without errors.
      • shutdown

        Future<Boolean> shutdown​(long quietPeriod,
                                 long timeout,
                                 TimeUnit timeUnit)
        Shutdown the ClientResources.
        Parameters:
        quietPeriod - the quiet period as described in the documentation
        timeout - the maximum amount of time to wait until the executor is shutdown regardless if a task was submitted during the quiet period
        timeUnit - the unit of quietPeriod and timeout
        Returns:
        eventually the success/failure of the shutdown without errors.
      • computationThreadPoolSize

        int computationThreadPoolSize()
        Return the pool size (number of threads) for all computation tasks.
        Returns:
        the pool size (number of threads to use).
      • eventBus

        EventBus eventBus()
        Return the event bus used to publish events.
        Returns:
        the event bus
      • eventExecutorGroup

        EventExecutorGroup eventExecutorGroup()
        Return the computation pool used for internal operations. Such tasks are periodic Redis Cluster and Redis Sentinel topology updates and scheduling of connection reconnection by ConnectionWatchdog.
        Returns:
        the computation pool used for internal operations
      • ioThreadPoolSize

        int ioThreadPoolSize()
        Return the pool size (number of threads) for IO threads. The indicated size does not reflect the number for all IO threads. TCP and socket connections (epoll) require different IO pool.
        Returns:
        the pool size (number of threads) for all IO tasks.
      • reconnectDelay

        Delay reconnectDelay()
        Return the Delay for reconnect attempts. May return a different instance on each call.
        Returns:
        the reconnect Delay.
        Since:
        4.3
      • timer

        Timer timer()
        Return the Timer to schedule events. A timer object may run single- or multi-threaded but must be used for scheduling of short-running jobs only. Long-running jobs should be scheduled and executed using eventExecutorGroup().
        Returns:
        the timer.
        Since:
        4.3
      • tracing

        Tracing tracing()
        Return the Tracing instance to support tracing of Redis commands.
        Returns:
        the configured Tracing.
        Since:
        5.1