package com.atlassian.bitbucket.scm.git.protocol;

import javax.annotation.Nonnull;

/**
 * Callback interface for {@link GitPacketStream}.
 */
public interface GitPacketListener {

    /**
     * Callback method. Every time a complete git packet has been appended to {@link GitPacketStream}, the
     * {@link GitPacketListener listeners} get a callback.
     *
     * @param packet the git packet
     */
    void onPacket(@Nonnull byte[] packet);
}
