

package org.apache.ignite.spi.swapspace;

import org.jetbrains.annotations.*;

/**
 * Swap space SPI eviction listener.
 */
public interface SwapSpaceSpiListener {
    /**
     * Notification for swap space events.
     *
     * @param evtType Event type. See {@link org.apache.ignite.events.SwapSpaceEvent}
     * @param spaceName Space name for this event or {@code null} for default space.
     * @param keyBytes Key bytes of affected entry. Not {@code null} only for evict notifications.
     */
    public void onSwapEvent(int evtType, @Nullable String spaceName, @Nullable byte[] keyBytes);
}
