RoomProperties.java 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.ym.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * Created by weiqinxiao on 2019/2/28.
  7. */
  8. @Data
  9. @Component
  10. @ConfigurationProperties(prefix = "cn.rongcloud.room")
  11. public class RoomProperties {
  12. private int maxCount;
  13. private long taskTtl;
  14. private long roomTtl;
  15. private long userIMOfflineKickTtl;
  16. public int getMaxCount() {
  17. return maxCount;
  18. }
  19. public void setMaxCount(int maxCount) {
  20. this.maxCount = maxCount;
  21. }
  22. public long getTaskTtl() {
  23. return taskTtl;
  24. }
  25. public void setTaskTtl(long taskTtl) {
  26. this.taskTtl = taskTtl;
  27. }
  28. public long getRoomTtl() {
  29. return roomTtl;
  30. }
  31. public void setRoomTtl(long roomTtl) {
  32. this.roomTtl = roomTtl;
  33. }
  34. public long getUserIMOfflineKickTtl() {
  35. return userIMOfflineKickTtl;
  36. }
  37. public void setUserIMOfflineKickTtl(long userIMOfflineKickTtl) {
  38. this.userIMOfflineKickTtl = userIMOfflineKickTtl;
  39. }
  40. }