public interface SessionHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
SessionHandler.SessionAcceptance
Result object for
accept(Session) |
| Modifier and Type | Method and Description |
|---|---|
SessionHandler.SessionAcceptance |
accept(Session session)
This method is invoked on a session creation, before sending the SMTP greeting and can react rejecting
the session.
|
static SessionHandler |
acceptAll() |
static SessionHandler |
limitConcurrentSessionsBySource(int maxConnectionsPerSource) |
void |
onSessionEnd(Session session)
This method is invoked on session close.
|
SessionHandler.SessionAcceptance accept(Session session)
Rejected session will be closed and no method onSessionEnd(Session) will be invoked.
session - newly created session (should never be null)void onSessionEnd(Session session)
session - closing sessionstatic SessionHandler limitConcurrentSessionsBySource(int maxConnectionsPerSource)
static SessionHandler acceptAll()
Copyright © 2006–2024. All rights reserved.