File

src/session/startup/resume_strategy.ts

Description

Declares an interface for managing resuming of sessions.

Index

Methods

Methods

Abstract forget
forget(sessionId: SessionId)

Called when a certain session is no longer available, allows for clearing the remembered session.

Parameters :
Name Type Optional
sessionId SessionId No
Returns : void
Abstract remember
remember(details: ProjectDetails, sessionId: SessionId)

Called when a new session has been started, may be used to remember the session id that was started.

Parameters :
Name Type Optional
details ProjectDetails No
sessionId SessionId No
Returns : void
Abstract replace
replace(oldSessionId: SessionId, newSessionId: SessionId)

Called when a session is known to be replaced by a new session id.

Parameters :
Name Type Optional
oldSessionId SessionId No
newSessionId SessionId No
Returns : void
Abstract resume
resume(details: ProjectDetails)

Attempts to determine the session id that may be resumed instead of starting a new session.

Parameters :
Name Type Optional
details ProjectDetails No

result-matching ""

    No results matching ""