- 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 voidactivated()Callback for a connection activated event.voiddeactivated()Callback for a connection deactivated event.voidreset()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.
-