Class RedisPersisterConfig

java.lang.Object
com.popush.henrietta.discord.config.RedisPersisterConfig

@Configuration
public class RedisPersisterConfig
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    RedisPersisterConfig()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.aop.target.CommonsPool2TargetSource poolTargetSource()  
    org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory()  
    org.springframework.statemachine.data.redis.RedisStateMachinePersister<BotStates,​BotEvents> redisStateMachinePersister​(org.springframework.statemachine.StateMachinePersist<BotStates,​BotEvents,​java.lang.String> stateMachinePersist)  
    org.springframework.data.redis.core.RedisTemplate<java.lang.String,​byte[]> redisTemplate()  
    org.springframework.aop.framework.ProxyFactoryBean stateMachine()  
    org.springframework.statemachine.StateMachinePersist<BotStates,​BotEvents,​java.lang.String> stateMachinePersist​(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedisPersisterConfig

      public RedisPersisterConfig()
  • Method Details

    • redisConnectionFactory

      @Bean public org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory()
    • redisTemplate

      @Bean public org.springframework.data.redis.core.RedisTemplate<java.lang.String,​byte[]> redisTemplate()
    • stateMachinePersist

      @Bean public org.springframework.statemachine.StateMachinePersist<BotStates,​BotEvents,​java.lang.String> stateMachinePersist​(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory)
    • redisStateMachinePersister

      @Bean public org.springframework.statemachine.data.redis.RedisStateMachinePersister<BotStates,​BotEvents> redisStateMachinePersister​(org.springframework.statemachine.StateMachinePersist<BotStates,​BotEvents,​java.lang.String> stateMachinePersist)
    • poolTargetSource

      @Bean public org.springframework.aop.target.CommonsPool2TargetSource poolTargetSource()
    • stateMachine

      @Bean @Scope(scopeName="request", proxyMode=TARGET_CLASS) public org.springframework.aop.framework.ProxyFactoryBean stateMachine()