Home / File/ CompletionCallback.java — netty Source File

CompletionCallback.java — netty Source File

Architecture documentation for CompletionCallback.java, a java file in the netty codebase.

Entity Profile

Relationship Graph

Source Code

/*
 * Copyright 2024 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.channel.uring;

import java.nio.ByteBuffer;

interface CompletionCallback {
    /**
     * Called for a completion event that was put into the {@link CompletionQueue}.
     *
     * @param res           the result of the completion event.
     * @param flags         the flags
     * @param udata         the user data that was provided as part of the submission
     * @param extraCqeData  the extra data for the CQE. This will only be non-null of the ring was setup with
     *                      {@code IORING_SETUP_CQE32} or {@code IORING_SETUP_CQE_MIXED} and {@code IORING_CQE_F_32} is
     *                      set in {@code flags}.
     * @return              {@code true} if we more data (in a loop) can be handled be this callback, {@code false}
     *                      otherwise.
     */
    void handle(int res, int flags, long udata, ByteBuffer extraCqeData);
}

Frequently Asked Questions

What does CompletionCallback.java do?
CompletionCallback.java is a source file in the netty codebase, written in java.
Where is CompletionCallback.java in the architecture?
CompletionCallback.java is located at transport-classes-io_uring/src/main/java/io/netty/channel/uring/CompletionCallback.java (directory: transport-classes-io_uring/src/main/java/io/netty/channel/uring).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free