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()
EventRegistration
EventFilter
attached to this registration.getFilter
in interface EventRegistration
public String getId()
EventRegistration
getId
in interface EventRegistration
public Address getSubscriber()
EventRegistration
getSubscriber
in interface EventRegistration
public boolean isLocalOnly()
EventRegistration
isLocalOnly
in interface EventRegistration
public Object getListener()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.