org.opensearch.migrations.replay.AccumulationCallbacks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trafficReplayer Show documentation
Show all versions of trafficReplayer Show documentation
Everything opensearch migrations
The newest version!
package org.opensearch.migrations.replay;
import java.time.Instant;
import java.util.List;
import java.util.function.Consumer;
import org.opensearch.migrations.replay.datatypes.ITrafficStreamKey;
import org.opensearch.migrations.replay.tracing.IReplayContexts;
import lombok.NonNull;
public interface AccumulationCallbacks {
Consumer onRequestReceived(
@NonNull IReplayContexts.IReplayerHttpTransactionContext ctx,
@NonNull HttpMessageAndTimestamp request
);
void onTrafficStreamsExpired(
RequestResponsePacketPair.ReconstructionStatus status,
@NonNull IReplayContexts.IChannelKeyContext ctx,
@NonNull List trafficStreamKeysBeingHeld
);
void onConnectionClose(
int channelInteractionNum,
@NonNull IReplayContexts.IChannelKeyContext ctx,
int channelSessionNumber,
RequestResponsePacketPair.ReconstructionStatus status,
@NonNull Instant timestamp,
@NonNull List trafficStreamKeysBeingHeld
);
void onTrafficStreamIgnored(@NonNull IReplayContexts.ITrafficStreamsLifecycleContext ctx);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy