<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 27.04.2012 11:05, Dan Berindei wrote:
<blockquote
cite="mid:CA+nfvwSvqhRru+MOjN6AZc5Hfoyn8JXsYW9BwBh=SJVvrxY8nQ@mail.gmail.com"
type="cite"><br>
<pre wrap="">I wasn't thinking of a flag, I was thinking of a withTimeout(timeout)
method on AdvancedCache. There may be other "flags" that could be
customized with a value as well, but then you'd need to keep them in a
map and it could be more trouble than it's worth.
The complication with withTimeout/tryLock OTOH is that as a user I'd
expect it to limit everything, not just the lock acquisition - so it
would have to override sync.replTimeout as well.
</pre>
</blockquote>
<br>
Where is the JIRA to vote for? :)<br>
<br>
The javadoc for lock says:"false will only be returned if the lock
acquisition timed out and the operation has been called with <a
href="http://docs.jboss.org/infinispan/5.1/apidocs/org/infinispan/context/Flag.html#FAIL_SILENTLY"><code>Flag.FAIL_SILENTLY</code></a>.".<br>
As user I'd assume that when using the mentioned flag and
independend what errors happen, the lock will _only_ return false in
case of an timeout.<br>
<br>
Is the discussed "tryLock" in the end the expected behaviour for
lock with FAIL_SILENTLY regarding the javadoc?<br>
<br>
</body>
</html>