Re: take vs. takeIfExists

John McClain <[email protected]> Tue, 18 Nov 2008 09:16:58 -0500
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Asaf Lahav wrote:
>
> Hi everybody,
>
> What is the difference between using take vs. takeIfExists in the 
> following cases:
>
> entry = space.takeIfExists(tmpl, null, 0);
>
> vs.
>
> entry = space.take (tmpl, null, 0);
>
> Thanks in advance…
>
In this case there is no difference. The difference between a std. query 
and an ifExists is how they deal with non-zero timeouts.

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]