SseResult.java 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.goafanti.baiduAI.bo;
  2. import com.goafanti.common.bo.SseEmitterUTF8;
  3. import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
  4. public class SseResult {
  5. public String clientId;
  6. public long timestamp;
  7. public SseEmitterUTF8 sseEmitter;
  8. public String getClientId() {
  9. return clientId;
  10. }
  11. public void setClientId(String clientId) {
  12. this.clientId = clientId;
  13. }
  14. public long getTimestamp() {
  15. return timestamp;
  16. }
  17. public void setTimestamp(long timestamp) {
  18. this.timestamp = timestamp;
  19. }
  20. public SseEmitter getSseEmitter() {
  21. return sseEmitter;
  22. }
  23. public SseResult(String clientId, long timestamp, SseEmitterUTF8 sseEmitter) {
  24. this.clientId = clientId;
  25. this.timestamp = timestamp;
  26. this.sseEmitter = sseEmitter;
  27. }
  28. public SseResult() {
  29. }
  30. }