RpcEndpoint
RpcEndpoint defines a RPC endpoint that processes messages using callbacks, i.e. functions to execute when a message arrives.
RpcEndpoint lives in RpcEnv after being registered by a name.
A RpcEndpoint can be registered to one and only one RpcEnv.
The lifecycle of a RpcEndpoint is onStart, receive and onStop in sequence.
receive can be called concurrently.
|
Tip
|
If you want receive to be thread-safe, use ThreadSafeRpcEndpoint.
|
onError method is called for any exception thrown.
onStart Method
|
Caution
|
FIXME |
stop Method
|
Caution
|
FIXME |