Tabnine Logo
OnRemoved.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.oracle.coherence.common.liveobjects.OnRemoved
constructor

Best Java code snippets using com.oracle.coherence.common.liveobjects.OnRemoved.<init> (Showing top 6 results out of 315)

origin: com.oracle.coherence.incubator/coherence-eventdistributionpattern

@OnRemoved
@OnDeparting
public void onEntryRemoved(BinaryEntry entry)
{
  // for deleted subscriptions, schedule the stopping of the associated EventChannelController
  ResourceRegistry registry = CacheFactory.getConfigurableCacheFactory().getResourceRegistry();
  if (logger.isLoggable(Level.FINE))
  {
    logger.log(Level.FINE, "Scheduling the EventChannelController for {0} to stop.", new Object[] {this});
  }
  EventChannelControllerManager manager = registry.getResource(EventChannelControllerManager.class);
  EventChannelController controller = manager.unregisterEventChannelController(distributorIdentifier,
                                         controllerIdentifier);
  controller.stop();
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * When a {@link Topic} is removed from the cache or is removed via a departing partition
 * need to unregister its MBean.
 *
 * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor
 */
@OnRemoved
@OnDeparting
public void onRemoved(BinaryEntry entry)
{
  if (logger.isLoggable(Level.FINER))
  {
    logger.log(Level.FINER, "Topic:onRemoved identifier:{0}", getIdentifier());
  }
  MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance();
  MBeanManager.unregisterMBean(this, MBeanManager.buildTopicMBeanName(getIdentifier()));
}
origin: com.oracle.coherence.incubator/coherence-eventdistributionpattern

/**
 * An entry has been removed or is departing.
 *
 * @param entry the BinaryEntry
 */
@OnRemoved
@OnDeparting
public void onEntryRemoved(BinaryEntry entry)
{
  // for deleted subscriptions, schedule the stopping of the associated EventChannelController
  if (logger.isLoggable(Level.FINE))
  {
    logger.log(Level.FINE, "Scheduling the EventChannelController for {0} to stop.", new Object[] {this});
  }
  ResourceRegistry              registry = CacheFactory.getConfigurableCacheFactory().getResourceRegistry();
  EventChannelControllerManager manager  = registry.getResource(EventChannelControllerManager.class);
  // remove registered service
  EventChannelController controller = manager.unregisterEventChannelController(distributorIdentifier,
                                         controllerIdentifier);
  controller.stop();
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * When a {@link QueueSubscription} is removed from the cache or removed via a partition departing
 * need to unregister its MBean and clean up the lease.
 *
 * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor
 */
@OnRemoved
@OnDeparting
public void onRemoved(BinaryEntry entry)
{
  if (logger.isLoggable(Level.FINER))
  {
    logger.log(Level.FINER, "QueueSubscription:onRemoved identifier:{0}", getIdentifier());
  }
  // Handle lease processing
  unregisterLease();
  // Unregister the subscription MBEAN
  MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance();
  MBeanManager.unregisterMBean(this, MBeanManager.buildQueueSubscriptionMBeanName(getIdentifier()));
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * When a {@link TopicSubscription} is removed from the cache or is remove via a partition departing
 * need to unregister its MBean and clean up the lease.
 *
 * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor
 */
@OnRemoved
@OnDeparting
public void onRemoved(BinaryEntry entry)
{
  if (logger.isLoggable(Level.FINER))
  {
    logger.log(Level.FINER, "TopicSubscription:onRemoved identifier:{0}", getIdentifier());
  }
  // Handle lease processing
  unregisterLease();
  // Unregister the subscription MBEAN
  MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance();
  MBeanManager.unregisterMBean(this, MBeanManager.buildTopicSubscriptionMBeanName(getIdentifier()));
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 *  When a {@link Queue} is removed from the cache or removed via a departing partition
 *  need to unregister its MBean
 *
 * @param entry The {@link BinaryEntry} provided by the LiveObjectInterceptor
 */
@OnRemoved
@OnDeparting
public void onRemoved(BinaryEntry entry)
{
  if (logger.isLoggable(Level.FINER))
  {
    logger.log(Level.FINER, "Queue:onRemoved identifier: {0}", getIdentifier());
  }
  // Shutdown the Engine which contains the finite state machine, used to coalesce queue event processing.
  ResourceRegistry registry = CacheFactory.getConfigurableCacheFactory().getResourceRegistry();
  QueueEngine      qEngine  = registry.getResource(QueueEngine.class, getIdentifier().toString());
  if (qEngine != null)
  {
    registry.unregisterResource(QueueEngine.class, getIdentifier().toString());
    qEngine.dispose();
  }
  // Unregister the destination MBEAN
  MessagingMBeanManager MBeanManager = MessagingMBeanManager.getInstance();
  MBeanManager.unregisterMBean(this, MBeanManager.buildQueueMBeanName(getIdentifier()));
}
com.oracle.coherence.common.liveobjectsOnRemoved<init>

Popular methods of OnRemoved

    Popular in Java

    • Reactive rest calls using spring rest template
    • findViewById (Activity)
    • startActivity (Activity)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • MalformedURLException (java.net)
      This exception is thrown when a program attempts to create an URL from an incorrect specification.
    • Socket (java.net)
      Provides a client-side TCP socket.
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • JComboBox (javax.swing)
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • Best plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now