Package io.netty.channel.uring
Interface CompletionCallback
-
interface CompletionCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(int res, int flags, long udata, java.nio.ByteBuffer extraCqeData)Called for a completion event that was put into theCompletionQueue.
-
-
-
Method Detail
-
handle
boolean handle(int res, int flags, long udata, java.nio.ByteBuffer extraCqeData)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).
-
-