Class RegistrarEvent

All Implemented Interfaces:
Serializable

public class RegistrarEvent extends ServiceEvent
Concrete implementation class for abstract ServiceEvent.
Author:
Sun Microsystems, Inc.
See Also:
  • Field Details

    • item

      protected Object item
      The new state of the item, or null if the item has been deleted from the lookup service. This is either a ServiceItem or an Item (to be converted to a ServiceItem when unmarshalled).
    • servID

      protected transient ServiceID servID
      The service ID of the item that triggered the event. This field is used instead of the inherited serviceID field (which is set to null) and is written directly as a 128-bit value in order to avoid potential codebase annotation loss (see bug 4745728).
  • Constructor Details

    • RegistrarEvent

      public RegistrarEvent(Object source, long eventID, long seqNo, MarshalledObject handback, ServiceID serviceID, int transition, Item item)
      Simple constructor.
      Parameters:
      source - the ServiceRegistrar that generated the event
      eventID - the registration eventID
      seqNo - the sequence number of this event
      handback - the client handback
      serviceID - the serviceID of the item that triggered the event
      transition - the transition that triggered the event
      item - the new state of the item, or null if deleted
  • Method Details

    • getServiceItem

      public ServiceItem getServiceItem()
      Returns the new state of the item, or null if the item was deleted from the lookup service.
      Specified by:
      getServiceItem in class ServiceEvent
      Returns:
      a ServiceItem object representing the service item value
    • getServiceID

      public ServiceID getServiceID()
      Description copied from class: ServiceEvent
      Returns the serviceID of the item that triggered the event.
      Overrides:
      getServiceID in class ServiceEvent
      Returns:
      a ServiceID object representing the service ID value
    • setTransition

      public void setTransition(int transition)