congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
com.oracle.coherence.common.liveobjects
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.oracle.coherence.common.liveobjects (Showing top 19 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

@LiveObject
@SuppressWarnings("serial")
public class Topic extends Destination
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * 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()));
}
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

@OnInserted
@OnArrived
@OnRestored
public void onEntryInserted(BinaryEntry entry)
origin: com.oracle.coherence.incubator/coherence-eventdistributionpattern

/**
 * 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();
  }
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * 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()));
}
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-eventdistributionpattern

@OnInserted
@OnArrived
@OnRestored
public void onEntryInserted(BinaryEntry entry)
origin: com.oracle.coherence.incubator/coherence-messagingpattern

@LiveObject
@SuppressWarnings("serial")
public class QueueSubscription extends LeasedSubscription
origin: com.oracle.coherence.incubator/coherence-messagingpattern

/**
 * 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()));
}
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-eventdistributionpattern

@LiveObject
public class JMSEventChannelControllerConfiguration implements ExternalizableLite,
                                PortableObject,
origin: com.oracle.coherence.incubator/coherence-messagingpattern

@OnInserted
@OnUpdated
@OnArrived
@OnRestored
public void onChanged(BinaryEntry entry)
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

@LiveObject
@SuppressWarnings("serial")
public class TopicSubscription extends LeasedSubscription
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-eventdistributionpattern

@LiveObject
public class CoherenceEventChannelSubscription extends Subscription implements EventChannelControlled
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()));
}
origin: com.oracle.coherence.incubator/coherence-messagingpattern

@LiveObject
@SuppressWarnings("serial")
public class Queue extends Destination
com.oracle.coherence.common.liveobjects

Most used classes

  • LiveObject
  • OnArrived
  • OnDeparting
  • OnInserted
  • OnRemoved
  • OnUpdated
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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