/** * When an Entry is inserted, updated, or arrives via a partition transfer need to ensure that the MBean * for this {@link Topic} is properly visible. * * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor */ @OnInserted @OnUpdated @OnArrived @OnRestored public void onChanged(BinaryEntry entry) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Topic:onChanged identifier:{0}", getIdentifier()); } MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance(); MBeanManager.registerMBean(this, TopicProxy.class, MBeanManager.buildTopicMBeanName(getIdentifier())); }
/** * When an Entry is inserted, updated, or arrives via a partition transfer need to ensure that the MBean * and lease for this @{TopicSubscription} is properly visible. * * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor */ @OnInserted @OnUpdated @OnArrived @OnRestored public void onChanged(BinaryEntry entry) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "TopicSubscription:onChanged identifier:{0}", getIdentifier()); } // Handle lease processing registerLease(); MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance(); MBeanManager.registerMBean(this, SubscriptionProxy.class, MBeanManager.buildTopicSubscriptionMBeanName(getIdentifier())); }
/** * An entry has been updated. * * @param entry the BinaryEntry */ @OnUpdated public void onEntryUpdated(BinaryEntry entry) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "Scheduling the EventChannelController for {0} to distribute available events.", new Object[] {this}); } ResourceRegistry registry = entry.getContext().getManager().getCacheFactory().getResourceRegistry(); EventChannelControllerManager manager = registry.getResource(EventChannelControllerManager.class); // when a subscription is update we assume we need to schedule distribution final EventChannelController controller = manager.getEventChannelController(distributorIdentifier, controllerIdentifier); if (hasVisibleMessages()) { controller.preempt(); } }
/** * When an Entry is inserted, updated, or arrived via a partition transfer need to ensure that the * MBean and lease for this {@link QueueSubscription} is properly visible. * * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor */ @OnInserted @OnUpdated @OnArrived @OnRestored public void onChanged(BinaryEntry entry) { if (logger.isLoggable(Level.FINER)) { logger.log(Level.FINER, "QueueSubscription:onChanged identifier:{0}", getIdentifier()); } // Handle lease processing registerLease(); // Register the subscription MBEAN MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance(); MBeanManager.registerMBean(this, QueueSubscriptionProxy.class, MBeanManager.buildQueueSubscriptionMBeanName(getIdentifier())); }
@OnUpdated @OnArrived @OnRestored