MessageConsumer.java 363 B

123456789101112131415161718192021222324252627
  1. package com.primeton.dgs.kernel.core.message;
  2. /**
  3. * <pre>
  4. *
  5. * Created by zhaopx.
  6. * User: zhaopx
  7. * Date: 2019/11/11
  8. * Time: 13:55
  9. *
  10. * </pre>
  11. *
  12. * @author zhaopx
  13. */
  14. public interface MessageConsumer {
  15. /**
  16. * 接收到消息的处理
  17. * @param topic
  18. * @param message
  19. */
  20. public void onMessage(String topic, Object message);
  21. }