public class Registration extends Object implements EventRegistration
| Constructor and Description |
|---|
Registration() |
Registration(String id,
String serviceName,
String topic,
EventFilter filter,
Address subscriber,
Object listener,
boolean localOnly) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
EventFilter |
getFilter()
Returns the
EventFilter attached to this registration. |
String |
getId()
Returns the event registration ID.
|
Object |
getListener() |
String |
getServiceName() |
Address |
getSubscriber()
Returns the subscriber of this registration.
|
String |
getTopic() |
int |
hashCode() |
boolean |
isLocalOnly()
Returns true if this registration is for locally fired events only.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public String getServiceName()
public String getTopic()
public EventFilter getFilter()
EventRegistrationEventFilter attached to this registration.getFilter in interface EventRegistrationpublic String getId()
EventRegistrationgetId in interface EventRegistrationpublic Address getSubscriber()
EventRegistrationgetSubscriber in interface EventRegistrationpublic boolean isLocalOnly()
EventRegistrationisLocalOnly in interface EventRegistrationpublic Object getListener()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.