package id.iptek.utms.agent.queue;

import java.util.List;

/**
 *
 * @author jakar
 */
public interface QueueMessageHandler<T> {
    
    /**
     * Handle message
     * @param message
     * @return 
     */
    public boolean handleMessage(T message);
    
    /**
     * Handle batch of messages at same time
     * @param messages
     * @return 
     */
    public boolean handleMessages(List<T> messages);
    
}
