Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IPrivateDIFSession |
|
| 1.0;1 |
1 | /** | |
2 | * - Digitalis Internal Framework v2.0 - (C) 2007, Digitalis Informatica. Distribuicao e Gestao de Informatica, Lda. | |
3 | * Estrada de Paco de Arcos num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 | |
4 | * http://www.digitalis.pt | |
5 | */ | |
6 | package pt.digitalis.dif.controller.interfaces; | |
7 | ||
8 | /** | |
9 | * Defines a public accessible DIF Session | |
10 | * | |
11 | * @author Rodrigo Gonçalves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a><br/> | |
12 | * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a> | |
13 | * @created Nov 29, 2007 | |
14 | */ | |
15 | public interface IPrivateDIFSession extends IDIFSession { | |
16 | ||
17 | /** | |
18 | * Touches the session so it remains active. | |
19 | */ | |
20 | public void forceKeepAlive(); | |
21 | ||
22 | /** | |
23 | * The criteria for a timed out session is that the last access time plus the session time out must be higher than | |
24 | * the current time. | |
25 | * | |
26 | * @return T time after the session has timed out that the cleanup Collection will consider before purging the | |
27 | * session (ms). | |
28 | */ | |
29 | public boolean hasExpiredAfterTimeOut(); | |
30 | ||
31 | /** | |
32 | * Touches the session so it remains active, if the session hasn't expired or is marked for removal. | |
33 | */ | |
34 | public void keepAlive(); | |
35 | ||
36 | /** | |
37 | * Marks the session to be removed | |
38 | * | |
39 | * @param markedForRemoval | |
40 | */ | |
41 | public void setMarkedForRemoval(Boolean markedForRemoval); | |
42 | } |