Java Code Examples for org.apache.rocketmq.common.UtilAll#isItTimeToDo()
The following examples show how to use
org.apache.rocketmq.common.UtilAll#isItTimeToDo() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultMessageStore.java From DDMQ with Apache License 2.0 | 5 votes |
private boolean isTimeToDelete() { String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }
Example 2
Source File: DefaultMessageStore.java From rocketmq-4.3.0 with Apache License 2.0 | 5 votes |
private boolean isTimeToDelete() { String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }
Example 3
Source File: DefaultMessageStore.java From rocketmq-read with Apache License 2.0 | 5 votes |
/** * 磁盘充足的情况下。每天几点删除文件 * @return ; */ private boolean isTimeToDelete() { //磁盘文件空间充足情况下,默认每天什么时候执行删除过期文件,默认04表示凌晨4点 String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }
Example 4
Source File: DefaultMessageStore.java From DDMQ with Apache License 2.0 | 5 votes |
private boolean isTimeToDelete() { String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }
Example 5
Source File: DefaultMessageStore.java From rocketmq-all-4.1.0-incubating with Apache License 2.0 | 5 votes |
/** * 是否可以删除文件,时间是否满足 */ private boolean isTimeToDelete() { String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }
Example 6
Source File: DefaultMessageStore.java From rocketmq with Apache License 2.0 | 5 votes |
private boolean isTimeToDelete() { String when = DefaultMessageStore.this.getMessageStoreConfig().getDeleteWhen(); if (UtilAll.isItTimeToDo(when)) { DefaultMessageStore.log.info("it's time to reclaim disk space, " + when); return true; } return false; }