Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.event.jms
Class ReconnectedJMSEventBundle

java.lang.Object
  extended by org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl
      extended by org.nuxeo.ecm.core.event.jms.ReconnectedJMSEventBundle
All Implemented Interfaces:
Serializable, Iterable<Event>, EventBundle, ReconnectedEventBundle

public class ReconnectedJMSEventBundle
extends ReconnectedEventBundleImpl

Default implementation for an EventBundle that needs to be reconnected to a usable Session.

Author:
tiry
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.core.event.ReconnectedEventBundle
SKIP_REFETCH_DOCUMENT_CONTEXT_KEY
 
Constructor Summary
ReconnectedJMSEventBundle(SerializableEventBundle jmsEventBundle)
           
 
Method Summary
 boolean comesFromJMS()
          Marker for Bundles coming from JMS.
 String getName()
          Gets the bundle name.
 VMID getSourceVMID()
          Returns the VMID of the JVM where the bundle was created.
 boolean hasRemoteSource()
          Tests whether or not this event bundle was created on a remote machine.
 boolean isEmpty()
          Tests whether or not this bundle is empty.
 
Methods inherited from class org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl
containsEventName, disconnect, getEventNames, iterator, peek, push, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconnectedJMSEventBundle

public ReconnectedJMSEventBundle(SerializableEventBundle jmsEventBundle)
Method Detail

getName

public String getName()
Description copied from interface: EventBundle
Gets the bundle name.

This is usually the first event repository name in the bundle but the implementation may decide to change this behavior.

Specified by:
getName in interface EventBundle
Overrides:
getName in class ReconnectedEventBundleImpl
Returns:
the bundle name. Can be null only if the bundle is empty.

getSourceVMID

public VMID getSourceVMID()
Description copied from interface: EventBundle
Returns the VMID of the JVM where the bundle was created.

Specified by:
getSourceVMID in interface EventBundle
Overrides:
getSourceVMID in class ReconnectedEventBundleImpl

hasRemoteSource

public boolean hasRemoteSource()
Description copied from interface: EventBundle
Tests whether or not this event bundle was created on a remote machine.

Specified by:
hasRemoteSource in interface EventBundle
Overrides:
hasRemoteSource in class ReconnectedEventBundleImpl
Returns:
true if the event bundle was fired from a remote machine, false otherwise

isEmpty

public boolean isEmpty()
Description copied from interface: EventBundle
Tests whether or not this bundle is empty.

Specified by:
isEmpty in interface EventBundle
Overrides:
isEmpty in class ReconnectedEventBundleImpl

comesFromJMS

public boolean comesFromJMS()
Description copied from interface: ReconnectedEventBundle
Marker for Bundles coming from JMS.

Specified by:
comesFromJMS in interface ReconnectedEventBundle
Overrides:
comesFromJMS in class ReconnectedEventBundleImpl

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.