Interface CompletionCallback
interface CompletionCallback
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(int res, int flags, long udata, ByteBuffer extraCqeData) Called for a completion event that was put into theCompletionQueue.
-
Method Details
-
handle
Called for a completion event that was put into theCompletionQueue.- Parameters:
res- the result of the completion event.flags- the flagsudata- the user data that was provided as part of the submissionextraCqeData- the extra data for the CQE. This will only be non-null of the ring was setup withIORING_SETUP_CQE32orIORING_SETUP_CQE_MIXEDandIORING_CQE_F_32is set inflags.- Returns:
trueif this completion represents a real I/O event that should be counted,falsefor internal completions (e.g. eventfd, ring fd).
-