diff options
author | Matthew Newhook <matthew@zeroc.com> | 2014-08-14 10:37:16 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2014-08-14 10:37:16 -0230 |
commit | 13c8da45cf4c892a17bda4f224a832bafd8e1bf4 (patch) | |
tree | d251dc62af721096338ac5be0ecbeaa825ce0e9e /java/demo/Freeze/library/BookI.java | |
parent | More fixes to the interrupt test. (diff) | |
download | ice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.tar.bz2 ice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.tar.xz ice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.zip |
- Cleaned up all demos.
- Fixed all demo warnings.
- Fixed applet and swing demo to use invocation timeout, not connect
timeouts.
Diffstat (limited to 'java/demo/Freeze/library/BookI.java')
-rw-r--r-- | java/demo/Freeze/library/BookI.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/demo/Freeze/library/BookI.java b/java/demo/Freeze/library/BookI.java index cdb94d07421..47bf5ff5090 100644 --- a/java/demo/Freeze/library/BookI.java +++ b/java/demo/Freeze/library/BookI.java @@ -16,6 +16,7 @@ class BookI extends Book // synchronization. // + @Override synchronized public BookDescription getBookDescription(Ice.Current current) { @@ -30,6 +31,7 @@ class BookI extends Book return description; } + @Override synchronized public String getRenterName(Ice.Current current) throws BookNotRentedException @@ -46,6 +48,7 @@ class BookI extends Book return rentalCustomerName; } + @Override synchronized public void rentBook(String name, Ice.Current current) throws BookRentedException @@ -62,6 +65,7 @@ class BookI extends Book rentalCustomerName = name; } + @Override synchronized public void returnBook(Ice.Current current) throws BookNotRentedException @@ -78,6 +82,7 @@ class BookI extends Book rentalCustomerName = new String();; } + @Override synchronized public void destroy(Ice.Current current) throws DatabaseException |