code: public boolean isConsumerSuspended(int suspendFlag)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.entry(tc, "isConsumerSuspended", Integer.valueOf(suspendFlag));
      
      boolean suspended;
      this.lock();
      try 
      {
        if (suspendFlag == 0)
        {
          // the passed in suspend flag was 0 this means the caller wants to know if the consumer
          // is suspended for any reason
          suspended = _consumerSuspended;
        }
        else if (_suspendFlags == 0)  // No flags set so it must not be suspended
        {
          suspended = false;
        }
        else if ((_suspendFlags & suspendFlag) == suspendFlag)
        {
          //We were asked about certain type of suspended and we are suspended for that reason
          suspended = true;
        }
        else 
        {
          suspended = false;
        }
      }
      finally
      {
        this.unlock();
      }
      
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "isConsumerSuspended", Boolean.valueOf(suspended));
      
      return suspended;
    }
docs: /* (non-Javadoc)
  @see com.ibm.ws.sib.processor.impl.interfaces.ConsumerPoint#isConsumerSuspended()