public void acquireWriteLockOnKey(K id){
  if (id == null) {
    LOGGER.error("Trying to acquire write lock with a NULL key - throwing an exception!");
    throw new IllegalArgumentException("Acquiring write lock with null key!");
  }
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace(cache.getName() + " Acquiring WRITE lock for id=" + String.valueOf(id));
  }
  cache.acquireWriteLockOnKey(id);
  if (LOGGER.isTraceEnabled()) {
    LOGGER.trace(cache.getName() + " Got WRITE lock for id=" + String.valueOf(id));
  }
}

public void acquireWriteLockOnKey ( K id ) { if ( id == null ) { LOGGER . error ( "Trying to acquire write lock with a NULL key - throwing an exception!" ) ; throw new IllegalArgumentException ( "Acquiring write lock with null key!" ) ; } if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( cache . getName ( ) + " Acquiring WRITE lock for id=" + String . valueOf ( id ) ) ; } cache . acquireWriteLockOnKey ( id ) ; if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( cache . getName ( ) + " Got WRITE lock for id=" + String . valueOf ( id ) ) ; } }
acquires the proper write lock for a given cache key
