A builder-style method that adds flags to any API call. For example, consider the following code snippet:
cache.withFlags(Flag.FORCE_WRITE_LOCK).get(key);
will invoke a cache.get() with a write lock forced.
@param flags a set of flags to apply. See the {@link Flag} documentation.
@return a cache on which a real operation is to be invoked.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.