Interface SessionStartHandler

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 SessionStartHandler
Handler for session-start hooks.

This handler is invoked when a session starts, allowing you to perform initialization or modify the session configuration.

Example Usage


 SessionStartHandler handler = (input, invocation) -> {
 	System.out.println("Session started from: " + input.getSource());
 	return CompletableFuture
 			.completedFuture(new SessionStartHookOutput().setAdditionalContext("Custom initialization context"));
 };
 
Since:
1.0.7
  • Method Details