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 voiddelegate(Event event)voiddelegate(Event event, Consumer<Throwable> handler)booleanequals(Object obj)MethodgetAddress()<T extends Annotation>
TgetParameterAnnotation(Class<? extends Annotation> annotation)ObjectgetReference()Class<?>getType()booleanisAsync()booleanisParameterAnnotationPresent(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()
-
-