Package net.engio.mbassy.listener
Class MessageHandler
java.lang.Object
net.engio.mbassy.listener.MessageHandler
Any method in any class annotated with the @Handler annotation represents a message handler. The class that contains
the handler is called a message listener and more generally, any class containing a message handler in its class hierarchy
defines such a message listener.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final String
private final IMessageFilter[]
private final Class[]
private final Method
private final Class
<? extends HandlerInvocation> private final Invoke
private final boolean
private final boolean
private final MessageListener
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
<A extends Annotation>
AgetAnnotation
(Class<A> annotationType) Class[]
Class
<? extends HandlerInvocation> int
boolean
handlesMessage
(Class<?> messageType) boolean
boolean
boolean
boolean
isFromListener
(Class listener) boolean
boolean
private void
-
Field Details
-
handler
-
filter
-
condition
-
priority
private final int priority -
invocation
-
invocationMode
-
isEnvelope
private final boolean isEnvelope -
handledMessages
-
acceptsSubtypes
private final boolean acceptsSubtypes -
listenerConfig
-
isSynchronized
private final boolean isSynchronized
-
-
Constructor Details
-
MessageHandler
-
-
Method Details
-
validate
-
getAnnotation
-
isSynchronized
public boolean isSynchronized() -
useStrongReferences
public boolean useStrongReferences() -
isFromListener
-
isAsynchronous
public boolean isAsynchronous() -
isFiltered
public boolean isFiltered() -
getPriority
public int getPriority() -
getMethod
-
getFilter
-
getCondition
-
getHandledMessages
-
isEnveloped
public boolean isEnveloped() -
getHandlerInvocation
-
handlesMessage
-
acceptsSubtypes
public boolean acceptsSubtypes()
-