Package org.rspeer.event
Class Subscription
- java.lang.Object
-
- org.rspeer.event.Subscription
-
public class Subscription extends Object
-
-
Constructor Summary
Constructors Constructor Description Subscription(Class<?> type, Object reference, Method address, boolean async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delegate(Event event)
void
delegate(Event event, Consumer<Throwable> handler)
boolean
equals(Object obj)
Method
getAddress()
<T extends Annotation>
TgetParameterAnnotation(Class<? extends Annotation> annotation)
Object
getReference()
Class<?>
getType()
boolean
isAsync()
boolean
isParameterAnnotationPresent(Class<? extends Annotation> annotation)
-
-
-
Method Detail
-
delegate
public void delegate(Event event)
-
isParameterAnnotationPresent
public boolean isParameterAnnotationPresent(Class<? extends Annotation> annotation)
-
getParameterAnnotation
public <T extends Annotation> T getParameterAnnotation(Class<? extends Annotation> annotation)
-
getType
public Class<?> getType()
-
getReference
public Object getReference()
-
getAddress
public Method getAddress()
-
isAsync
public boolean isAsync()
-
-