code: public boolean supportDeliveryMode( int deliveryMode )
      {
      	switch (deliveryMode)
      	{
      		case DeliveryMode.PERSISTENT :     return initialBlockCount > 0;
      		case DeliveryMode.NON_PERSISTENT : return maxNonPersistentMessages > 0;
      		default :
      			throw new IllegalArgumentException("Invalid delivery mode : "+deliveryMode);
      	}
      }
docs: Test if this topic definition supports the given delivery mode
  @param deliveryMode a delivery mode
  @return true if the mode is supported