QueueConfiguration.kt

  1. package delta.codecharacter.server.config

  2. import org.springframework.amqp.core.Queue
  3. import org.springframework.amqp.rabbit.annotation.EnableRabbit
  4. import org.springframework.context.annotation.Bean
  5. import org.springframework.context.annotation.Configuration

  6. @Configuration
  7. @EnableRabbit
  8. class QueueConfiguration {
  9.     @Bean fun gameRequestQueue() = Queue("gameRequestQueue")
  10.     @Bean fun gameStatusUpdateQueue() = Queue("gameStatusUpdateQueue")
  11. }