package com.zksy.data.controller;

import com.zksy.data.utils.PublisherDelayMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test3")
public class Test3Controller {
    @Autowired
    private PublisherDelayMessage publisherDelayMessage;
    @GetMapping("/a")
    public String hello(String msg){
        publisherDelayMessage.emitDelayMessage(msg,5000);
        return "hello world";
    }
}
