MqMessage.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.maxkey.persistence.mq;
  17. public class MqMessage {
  18. String id;
  19. String topic;
  20. String actionType;
  21. String sendTime;
  22. Object content;
  23. public String getTopic() {
  24. return topic;
  25. }
  26. public void setTopic(String topic) {
  27. this.topic = topic;
  28. }
  29. public String getActionType() {
  30. return actionType;
  31. }
  32. public void setActionType(String actionType) {
  33. this.actionType = actionType;
  34. }
  35. public String getSendTime() {
  36. return sendTime;
  37. }
  38. public void setSendTime(String sendTime) {
  39. this.sendTime = sendTime;
  40. }
  41. public String getId() {
  42. return id;
  43. }
  44. public void setId(String id) {
  45. this.id = id;
  46. }
  47. public Object getContent() {
  48. return content;
  49. }
  50. public void setContent(Object content) {
  51. this.content = content;
  52. }
  53. public MqMessage() {
  54. }
  55. public MqMessage(String id,String topic, String actionType, String sendTime, Object content) {
  56. super();
  57. this.id = id;
  58. this.topic = topic;
  59. this.actionType = actionType;
  60. this.sendTime = sendTime;
  61. this.content = content;
  62. }
  63. }