public void resume(String id){
  try {
    suspendedStateLock.lock();
    TraceState ts=suspendedState.get(id);
    if (ts != null) {
      clearExpire(ts);
      if (log.isLoggable(Level.FINEST)) {
        log.finest("Resume trace state = " + ts + " id = "+ id);
      }
      if (traceState.get() != null && log.isLoggable(Level.FINEST)) {
        log.finest("WARNING: Overwriting previous trace state = " + traceState.get());
      }
      traceState.set(ts);
      suspendedState.remove(id);
    }
  }
  finally {
    suspendedStateLock.unlock();
  }
}

public void resume ( String id ) { try { suspendedStateLock . lock ( ) ; TraceState ts = suspendedState . get ( id ) ; if ( ts != null ) { clearExpire ( ts ) ; if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( "Resume trace state = " + ts + " id = " + id ) ; } if ( traceState . get ( ) != null && log . isLoggable ( Level . FINEST ) ) { log . finest ( "WARNING: Overwriting previous trace state = " + traceState . get ( ) ) ; } traceState . set ( ts ) ; suspendedState . remove ( id ) ; } } finally { suspendedStateLock . unlock ( ) ; } }
this method attempts to resume a previously suspended trace state associated with the supplied id . when resumed , the trace state is associated with the current thread .
