git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@93568 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8ac9074361
commit
da1b03e978
|
@ -148,11 +148,13 @@ public class ASLSession{
|
|||
/**
|
||||
* Increases the current session timeout value by the given milliseconds. If negative input, it decreases the timeout.
|
||||
* @param milliseconds
|
||||
* @param resetCounting if true, it resets (=0) the counting towards the timeout
|
||||
* @return the new timeout in milliseconds
|
||||
*/
|
||||
public long increaseSessionTimeout(long milliseconds){
|
||||
public long increaseSessionTimeout(long milliseconds, boolean resetCounting){
|
||||
if(resetCounting)
|
||||
lastUsedTime = System.currentTimeMillis();
|
||||
sessionTimeout += milliseconds;
|
||||
lastUsedTime = System.currentTimeMillis(); //should we "touch" the session ?
|
||||
return sessionTimeout;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue