org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy

Here are the examples of the java api class org.apache.activemq.broker.region.policy.PendingSubscriberMessageStoragePolicy taken from open source projects.

1. DestinationCursorConfigTest#testTopicConfiguration()

Project: activemq-artemis
File: DestinationCursorConfigTest.java
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);
}