Package ch.nolix.system.application.main
Klasse Session<BC extends BackendClient<BC,AC>,AC>
java.lang.Object
ch.nolix.system.application.main.Session<BC,AC>
- Typparameter:
BC- is the type of theBackendClientof aSession.AC- is the type of the context of the parentApplicationof the parentBackendClientof aSession.
- Alle implementierten Schnittstellen:
IRefreshableSubscriber,Refreshable,AlivenessRequestable
- Bekannte direkte Unterklassen:
BaseWebClientSession,TestSession
public abstract class Session<BC extends BackendClient<BC,AC>,AC>
extends Object
implements IRefreshableSubscriber
A
Session manages user run methods and user data methods.- Version:
- 2016-01-01
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal booleanprotected abstract voidInitializes the currentSession.final Stringprotected abstract Class<?> final ACfinal BCfinal booleanfinal booleanisAlive()final voidpop()final voidfinal voidfinal <R> RpushAndGetResult(Session<BC, AC> session) final voidVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.AlivenessRequestable
isOutdatedVon Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.triggerapi.Refreshable
refresh
-
Konstruktordetails
-
Session
public Session()
-
-
Methodendetails
-
belongsToClient
public final boolean belongsToClient() -
getApplicationName
- Gibt zurück:
- the name of the parent
Applicationof the parentClientof the currentSession.
-
getStoredApplicationContext
- Gibt zurück:
- the context of the parent
Applicationof the parentClientof the currentSession.
-
getStoredParentClient
- Gibt zurück:
- the parent client of the current
Session. - Löst aus:
InvalidArgumentException- if the currentSessiondoes not belong to a client.
-
hasParentSession
public final boolean hasParentSession() -
isAlive
public final boolean isAlive()- Angegeben von:
isAlivein SchnittstelleAlivenessRequestable- Gibt zurück:
- true if the current
AlivenessRequestableis alive.
-
pop
public final void pop() -
pop
- Parameter:
result-- Löst aus:
ArgumentIsNullException- if the given result is null.
-
push
- Parameter:
session-- Löst aus:
ArgumentIsNullException- if the given session is null.
-
pushAndGetResult
- Typparameter:
R- is the type of the returned result.- Parameter:
session-- Gibt zurück:
- the result from the given session.
- Löst aus:
ArgumentIsNullException- if the given session is null.
-
setNext
Sets the next session of the parentClientof the currentSession. That means the currentSessionwill be popped from its parentClientand the given session is pushed to the parentClientof the currentSession.- Parameter:
session-- Löst aus:
ArgumentIsNullException- if the given session is null.
-
fullInitialize
protected abstract void fullInitialize()Initializes the currentSession. -
getClientClass
-