class RegistrarEvent extends ServiceEvent
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private Object |
serviceItem
The new state of the serviceItem, or null if the serviceItem has been
deleted from the lookup service.
|
private ServiceID |
servID
The service ID of the serviceItem 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 serviceItem, or null if the serviceItem was deleted
from the lookup service.
|
private void |
readObject(ObjectInputStream in)
Reads the default serializable field value for this instance, followed
by the serviceItem'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 serviceItem's service ID encoded as specified by the
ServiceID.writeBytes method.
|
getTransition, toString
getID, getRegistrationObject, getSequenceNumber, getSource
private static final long serialVersionUID
private volatile Object serviceItem
private 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 serviceItem that triggered the eventtransition
- the transition that triggered the eventitem
- the new state of the serviceItem, 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.