private void checkValid() throws SISessionUnavailableException
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc,"checkValid");
      
      // Start f
      if (invalid ||                                     // If the callback has finished
          consumerSession.isClosed() ||                  // If the parent session is closed
          (Thread.currentThread() != owningThread))      // If we are on a different thread
      {
         if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc,"not valid", this);
         invalid = true;
         throw new SISessionUnavailableException(null);
      }
      // End f
      
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc,"checkValid");
   }
private void checkValid ( ) throws SISessionUnavailableException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "checkValid" ) ; if ( invalid || consumerSession . isClosed ( ) || ( Thread . currentThread ( ) != owningThread ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "not valid" , this ) ; invalid = true ; throw new SISessionUnavailableException ( null ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "checkValid" ) ; }
Helper function.  Determines if the session (or connection)
associated with this locked message enumeration is valid or not.
A number of things can make a locked message enumeration invalid,
including it being closed, or used from outside the consume
messages callback.  If the enumeration is invalid, an
invalid state for operation exception is thrown.

@throws SISessionUnavailableException