Removed ASLSession expiration
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerCore@24335 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0395f7b23b
commit
fd305a6f1b
|
@ -8,14 +8,14 @@ import java.util.Set;
|
|||
|
||||
public class SessionManager {
|
||||
|
||||
protected static Thread thread = new CleanSessionThread();
|
||||
//protected static Thread thread = new CleanSessionThread();
|
||||
protected static SessionManager sessionManager = new SessionManager();
|
||||
protected HashMap<String, ASLSession> sessions;
|
||||
|
||||
protected SessionManager() {
|
||||
sessions = new HashMap<String, ASLSession>();
|
||||
thread.setDaemon(true);
|
||||
thread.start();
|
||||
//thread.setDaemon(true);
|
||||
//thread.start();
|
||||
}
|
||||
|
||||
public static SessionManager getInstance() {
|
||||
|
@ -35,10 +35,10 @@ public class SessionManager {
|
|||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
thread.interrupt();
|
||||
System.out.println(new Date(System.currentTimeMillis()) + " clean thread was interrupted");
|
||||
thread.join();
|
||||
System.out.println(new Date(System.currentTimeMillis()) + " clean thread was joint");
|
||||
//thread.interrupt();
|
||||
//System.out.println(new Date(System.currentTimeMillis()) + " clean thread was interrupted");
|
||||
//thread.join();
|
||||
//System.out.println(new Date(System.currentTimeMillis()) + " clean thread was joint");
|
||||
super.finalize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue