DeleteActivityHandler Interface

public interface DeleteActivityHandler

A method that can participate in delete activity events for the current turn.

Method Summary

Modifier and Type Method and Description
abstract java.util.concurrent.CompletableFuture<java.lang.Void> invoke(TurnContext context, ConversationReference reference, Supplier<CompletableFuture<Void>> next)

A method that can participate in delete activity events for the current turn.

Method Details

invoke

public abstract CompletableFuture invoke(TurnContext context, ConversationReference reference, Supplier> next)

A method that can participate in delete activity events for the current turn.

Parameters:

context - The context object for the turn.
reference - The conversation containing the activity.
next - The delegate to call to continue event processing.

Returns:

A task that represents the work queued to execute. A handler calls the next delegate to pass control to the next registered handler. If a handler doesn\u2019t call the next delegate, the adapter does not call any of the subsequent handlers and does not delete the activity.

The conversation reference's ConversationReference#getActivityId indicates the activity in the conversation to replace.

Applies to