Search in sources :

Example 1 with PendingSubscriberMessageStoragePolicy

use of org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy in project activemq-artemis by apache.

the class DestinationCursorConfigTest method testTopicConfiguration.

public void testTopicConfiguration() throws Exception {
    super.topic = true;
    ActiveMQDestination destination = (ActiveMQDestination) createDestination("org.apache.foo");
    PolicyEntry entry = broker.getDestinationPolicy().getEntryFor(destination);
    PendingSubscriberMessageStoragePolicy policy = entry.getPendingSubscriberPolicy();
    assertNotNull(policy);
    assertFalse(entry.isProducerFlowControl());
    assertTrue(entry.getMemoryLimit() == (1024 * 1024));
    assertTrue("subscriberPolicy is: " + policy, policy instanceof VMPendingSubscriberMessageStoragePolicy);
}
Also used : VMPendingSubscriberMessageStoragePolicy(org.apache.activemq.broker.region.policy.VMPendingSubscriberMessageStoragePolicy) PendingSubscriberMessageStoragePolicy(org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy) VMPendingSubscriberMessageStoragePolicy(org.apache.activemq.broker.region.policy.VMPendingSubscriberMessageStoragePolicy) PolicyEntry(org.apache.activemq.broker.region.policy.PolicyEntry) ActiveMQDestination(org.apache.activemq.command.ActiveMQDestination)

Aggregations

PendingSubscriberMessageStoragePolicy (org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy)1 PolicyEntry (org.apache.activemq.broker.region.policy.PolicyEntry)1 VMPendingSubscriberMessageStoragePolicy (org.apache.activemq.broker.region.policy.VMPendingSubscriberMessageStoragePolicy)1 ActiveMQDestination (org.apache.activemq.command.ActiveMQDestination)1