public interface Consumer
void consume(Message message, Channel in) throws Exception
message - The actual message.in - The target input channel.Exception - If any exception is thrown, it has the same effect as calling App.notifyOwner(e.getMessage(), e).boolean test()
throws Exception
Exception - If any exception is thrown, it has the same effect as calling App.notifyOwner(e.getMessage(), e) and then returning false.