ExamGecko
Question list
Search
Search

Related questions











Question 136 - H14-231_V1.0 discussion

Report
Export

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
Answers
A.
Gives subscribers permissions
B.
implements asynchronous operations, which solves the problem that time-consuming operations cannot be performed on onReceiveEvent
Answers
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
Answers
C.
sets the priority of ordered public events
D.
The publisher has the permission to publish sticky public events
Answers
D.
The publisher has the permission to publish sticky public events
Suggested answer: B
asked 18/09/2024
Rannie Dayapan
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first