-
February 4th, 2013, 03:02 PM
#1
Are the methods defined in MetadataProvider interface thread safe? [Java]
The Server ensures sequentiality of calls only in specific cases:
- Any invocation of notifyNewSession happens after the termination of the corresponding invocation of notifyUser;
the corresponding invocation was the one for which the "httpHeaders" parameter was the same Map instance as what returned by clientContext.get("HTTP_HEADERS"). - Any invocation of a method reporting a session ID happens after the termination of notifyNewSession for the same ID.
- Any invocation of notifyTablesClose happens after the termination of the corresponding notifyNewTables.
In all the above cases, the preceding and following invocations may occur on different threads, but they are guaranteed to be kept synchronized by the Server kernel.
In all other cases, concurrent invocations are possible and the Metadata Adapter implementation must be able to cope with that.
Note that if some implementations are blocking (as in the described case), you should also configure the size of the SERVER thread pool in a suitable way.
[Originally written by Dario Crivelli]
Similar Threads
-
By kpturner in forum General
Replies: 3
Last Post: July 30th, 2014, 12:23 PM
-
By flybyGWT in forum Client SDKs
Replies: 3
Last Post: May 9th, 2014, 07:56 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:22 PM.
Bookmarks