com.hazelcast.spi.impl
Class EventServiceImpl.Registration

java.lang.Object
  extended by com.hazelcast.spi.impl.EventServiceImpl.Registration
All Implemented Interfaces:
DataSerializable, EventRegistration
Enclosing class:
EventServiceImpl

public static class EventServiceImpl.Registration
extends Object
implements EventRegistration


Constructor Summary
EventServiceImpl.Registration()
           
EventServiceImpl.Registration(String id, String serviceName, String topic, EventFilter filter, Address subscriber, Object listener, boolean localOnly)
           
 
Method Summary
 boolean equals(Object o)
           
 EventFilter getFilter()
          Returns EventFilter attached to this registration.
 String getId()
          Returns event registration id.
 Object getListener()
           
 Address getSubscriber()
          Returns subscriber of this registration.
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventServiceImpl.Registration

public EventServiceImpl.Registration()

EventServiceImpl.Registration

public EventServiceImpl.Registration(String id,
                                     String serviceName,
                                     String topic,
                                     EventFilter filter,
                                     Address subscriber,
                                     Object listener,
                                     boolean localOnly)
Method Detail

getFilter

public EventFilter getFilter()
Description copied from interface: EventRegistration
Returns EventFilter attached to this registration.

Specified by:
getFilter in interface EventRegistration
Returns:
event filter attached to this registration

getId

public String getId()
Description copied from interface: EventRegistration
Returns event registration id.

Specified by:
getId in interface EventRegistration
Returns:
event registration id

getSubscriber

public Address getSubscriber()
Description copied from interface: EventRegistration
Returns subscriber of this registration.

Specified by:
getSubscriber in interface EventRegistration
Returns:
subscriber of this registration

isLocalOnly

public boolean isLocalOnly()
Description copied from interface: EventRegistration
Returns true if this registration is for locally fired events only.

Specified by:
isLocalOnly in interface EventRegistration
Returns:
true if this registration is local only, false otherwise.

getListener

public Object getListener()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.