1 Reply Latest reply on Jul 21, 2006 5:01 AM by Manik Surtani

    is synchronization of a TreeCache within the same VM necessa

    guava Newbie

      Hi,

      Is the following synchronization necessary?

      TreeCache cache = new TreeCache(channel);
      ......
      // possiblely access from multiple threads
      synchronzied ( cache) {
      Value v = cache.get(fqn, key);
      if ( v != null ) {
      // do something
      }
      }

      Thanks.