class RegistrarEvent extends ServiceEvent
Modifier and Type | Field and Description |
---|---|
protected Object |
item
The new state of the item, or null if the item has been
deleted from the lookup service.
|
private static long |
serialVersionUID |
protected ServiceID |
servID
The service ID of the item that triggered the event.
|
serviceID, transition
eventID, handback, seqNum, source
Constructor and Description |
---|
RegistrarEvent(Object source,
long eventID,
long seqNo,
MarshalledObject handback,
ServiceID serviceID,
int transition,
Item item)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
ServiceID |
getServiceID()
Returns the serviceID of the item that triggered the event.
|
ServiceItem |
getServiceItem()
Returns the new state of the item, or null if the item was deleted
from the lookup service.
|
private void |
readObject(ObjectInputStream in)
Reads the default serializable field value for this instance, followed
by the item's service ID encoded as specified by the
ServiceID.writeBytes method.
|
private void |
writeObject(ObjectOutputStream out)
Writes the default serializable field value for this instance, followed
by the item's service ID encoded as specified by the
ServiceID.writeBytes method.
|
getTransition, toString
getID, getRegistrationObject, getSequenceNumber
getSource
private static final long serialVersionUID
protected Object item
protected transient ServiceID servID
public RegistrarEvent(Object source, long eventID, long seqNo, MarshalledObject handback, ServiceID serviceID, int transition, Item item)
source
- the ServiceRegistrar that generated the eventeventID
- the registration eventIDseqNo
- the sequence number of this eventhandback
- the client handbackserviceID
- the serviceID of the item that triggered the eventtransition
- the transition that triggered the eventitem
- the new state of the item, or null if deletedpublic ServiceItem getServiceItem()
getServiceItem
in class ServiceEvent
public ServiceID getServiceID()
ServiceEvent
getServiceID
in class ServiceEvent
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.