org.apache.activemq.artemis.core.server.HandleStatus

Here are the examples of the java api class org.apache.activemq.artemis.core.server.HandleStatus taken from open source projects.

1. QueueImpl#handle()

Project: activemq-artemis
Source File: QueueImpl.java
View license
private synchronized HandleStatus handle(final MessageReference reference, final Consumer consumer) {
    HandleStatus status;
    try {
        status = consumer.handle(reference);
    } catch (Throwable t) {
        ActiveMQServerLogger.LOGGER.removingBadConsumer(t, consumer, reference);
        try {
            removeConsumer(consumer);
        } catch (Exception e) {
            ActiveMQServerLogger.LOGGER.errorRemovingConsumer(e);
        }
        return HandleStatus.BUSY;
    }
    if (status == null) {
        throw new IllegalStateException("ClientConsumer.handle() should never return null");
    }
    return status;
}