Annotation Type RPCConversationMethodBinding
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface RPCConversationMethodBinding
Indicate that method is used as a handler of incoming conversation RPC.Annotation is processed in
D2Session.setRPCConversationManagedHandlerType(Class)
. Only classes that implementRPCConversationManagedHandler
interface and have default constructor are permitted. Annotated method is required to have defined prototype:public void method(RPCCallEvent, RPCConversationContext, RPCConversationFlag)
.- See Also:
RPCCallEvent
,RPCConversationContext
,RPCConversationFlag
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description RPCConversationFlag[]
flags
Indicate types of conversation flags that are permitted for handling by annotated method.java.lang.String
name
Indicate formal name of RPC that is handled by annotated method.
-
-
-
Element Detail
-
name
java.lang.String name
Indicate formal name of RPC that is handled by annotated method.It is permitted to annotate more than one method of one class with the same formal name. However their
flags()
MUST NOT overlap, so that they are distinguishable overloads.- Returns:
- formal name
-
-
-
flags
RPCConversationFlag[] flags
Indicate types of conversation flags that are permitted for handling by annotated method.- Returns:
- conversation flags
-
-