/**************************************************************************************** 
 Copyright © 2003-2012 hbasesoft Corporation. All rights reserved. Reproduction or       <br>
 transmission in whole or in part, in any form or by any means, electronic, mechanical <br>
 or otherwise, is prohibited without the prior written consent of the copyright owner. <br>
 ****************************************************************************************/
package com.hbasesoft.framework.message.core.delay;

import java.util.Collection;

/**
 * <Description> <br>
 * 
 * @author 王伟<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2019年4月10日 <br>
 * @since V1.0<br>
 * @see com.hbasesoft.framework.message.core <br>
 */
public interface StepDelayMessageQueueLoader {

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @return <br>
     */
    int[] getLevels();

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @param level
     * @return <br>
     */
    StepDelayMessageQueue getDelayMessageQueue(int level);

    /**
     * Description: 加载 <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @return <br>
     */
    Collection<StepDelayMessageQueue> loadDelayMessageQueues();

    /**
     * Description: <br>
     * 
     * @author 王伟<br>
     * @taskId <br>
     * @param messageId
     * @param expireTime
     * @param oldLevel
     * @param newLevel <br>
     */
    void changeData(String messageId, long expireTime, int oldLevel, int newLevel);
}
