Interface SessionEndHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SessionEndHandler
Handler for session-end hooks.

This handler is invoked when a session ends, allowing you to perform cleanup or logging.

Example Usage


 SessionEndHandler handler = (input, invocation) -> {
 	System.out.println("Session ended: " + input.getReason());
 	return CompletableFuture
 			.completedFuture(new SessionEndHookOutput().setSessionSummary("Session completed successfully"));
 };
 
Since:
1.0.7
  • Method Details