diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-08-26 15:32:09 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-08-26 15:32:09 -0230 |
commit | d2d1ae0ca7d03f0b67f5c2086bff18f78331682d (patch) | |
tree | 966bdc697be9249585c02dd9dbbb27bfc1695c6b /java/demo/Database/library/SessionI.java | |
parent | move the query objects to the library. (diff) | |
download | ice-d2d1ae0ca7d03f0b67f5c2086bff18f78331682d.tar.bz2 ice-d2d1ae0ca7d03f0b67f5c2086bff18f78331682d.tar.xz ice-d2d1ae0ca7d03f0b67f5c2086bff18f78331682d.zip |
Minor cleanup, added session timeout.
Diffstat (limited to 'java/demo/Database/library/SessionI.java')
-rw-r--r-- | java/demo/Database/library/SessionI.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/demo/Database/library/SessionI.java b/java/demo/Database/library/SessionI.java index fac1b73385e..4bf4a89d0cb 100644 --- a/java/demo/Database/library/SessionI.java +++ b/java/demo/Database/library/SessionI.java @@ -31,6 +31,16 @@ class SessionI implements _SessionOperations, _Glacier2SessionOperations _timestamp = System.currentTimeMillis(); } + synchronized public long + getSessionTimeout(Ice.Current c) + { + if(_destroyed) + { + throw new Ice.ObjectNotExistException(); + } + return 5000; + } + synchronized public void destroy(Ice.Current c) { |