com.netflix.eventbus.spi
Class SubscriberInfo
java.lang.Object
com.netflix.eventbus.spi.SubscriberInfo
public class SubscriberInfo
- extends java.lang.Object
Metadata about a subscriber. This does not define any characterstics of the subscriber, its just a metadata
about any subscriber.
This class is designed to be immutable.
|
Constructor Summary |
SubscriberInfo(java.lang.reflect.Method subMethod,
java.lang.Object subInstance)
|
|
Method Summary |
java.lang.Object |
getSubscriberInstance()
Returns the instance of the class that this subscriber method belongs. |
java.lang.reflect.Method |
getSubscriberMethod()
Returns the method in the subscriber class that is subscribing to a particular event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriberInfo
public SubscriberInfo(java.lang.reflect.Method subMethod,
java.lang.Object subInstance)
getSubscriberMethod
public java.lang.reflect.Method getSubscriberMethod()
- Returns the method in the subscriber class that is subscribing to a particular event.
- Returns:
- The method in the subscriber class that is subscribing to a particular event.
getSubscriberInstance
public java.lang.Object getSubscriberInstance()
- Returns the instance of the class that this subscriber method belongs.
- Returns:
- The instance of the class that this subscriber method belongs.