org.apache.activemq.artemis.core.server.RouteContextList

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

1. RoutingContextImpl#addQueue()

View license
@Override
public void addQueue(final SimpleString address, final Queue queue) {
    RouteContextList listing = getContextListing(address);
    if (queue.isDurable()) {
        listing.getDurableQueues().add(queue);
    } else {
        listing.getNonDurableQueues().add(queue);
    }
    queueCount++;
}

2. RoutingContextImpl#addQueueWithAck()

View license
@Override
public void addQueueWithAck(SimpleString address, Queue queue) {
    addQueue(address, queue);
    RouteContextList listing = getContextListing(address);
    listing.addAckedQueue(queue);
}

3. RoutingContextImpl#isAlreadyAcked()

View license
@Override
public boolean isAlreadyAcked(SimpleString address, Queue queue) {
    RouteContextList listing = map.get(address);
    return listing == null ? false : listing.isAlreadyAcked(queue);
}

4. RoutingContextImpl#getContextListing()

View license
@Override
public RouteContextList getContextListing(SimpleString address) {
    RouteContextList listing = map.get(address);
    if (listing == null) {
        listing = new ContextListing();
        map.put(address, listing);
    }
    return listing;
}