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.source());
	return CompletableFuture.completedFuture(new SessionStartHookOutput("Custom initialization context", null));
};
Since:
1.0.7
  • Method Details