Related questions
Question 136 - H14-231_V1.0 discussion
When a developer subscribes to a public event, he processes the public event in the onReceiveEvent() callback function and writes the following code.
EventRunner runner = EventRunner.create();
MyEventHandler myHandler = new
MyEventHandler(rurner);
@Override
public void onReceiveEvent(CommonEventData
commonEventData){
final AsyncCommonEventResult
result=goAsyncCommonEvent Runnable task = new
Runnable(){
@override
pub1ic void run {
......
The action to be performed, defined by the developer
result.finishCommonEvent();
}
};
myHandler.postTask(task);
}
A.
Gives subscribers permissions
B.
implements asynchronous operations, which solves the problem that time-consuming operations cannot be performed on onReceiveEvent
C.
sets the priority of ordered public events
D.
The publisher has the permission to publish sticky public events
Your answer:
0 comments
Sorted by
Leave a comment first