Module lettuce.core

Interface ConnectionFacade

All Known Implementing Classes:
RedisChannelHandler, StatefulRedisClusterConnectionImpl, StatefulRedisConnectionImpl, StatefulRedisPubSubConnectionImpl, StatefulRedisSentinelConnectionImpl

public interface ConnectionFacade
Represents a stateful connection facade. Connections can be activated and deactivated and particular actions can be executed upon connection activation/deactivation.
Author:
Mark Paluch
  • Method Summary

    Modifier and Type Method Description
    void activated()
    Callback for a connection activated event.
    void deactivated()
    Callback for a connection deactivated event.
    void reset()
    Reset the connection state.
  • Method Details

    • activated

      void activated()
      Callback for a connection activated event. This method may invoke non-blocking connection operations to prepare the connection after the connection was established.
    • deactivated

      void deactivated()
      Callback for a connection deactivated event. This method may invoke non-blocking operations to cleanup the connection after disconnection.
    • reset

      void reset()
      Reset the connection state.