我有这个我想用线程调用的方法,因为我想在后台独立执行这个方法。那么,谁能告诉我我该怎么做?
我在EmailNotification
课堂上有以下功能
public class EmailNotification {
public void SendEmailNotificationForCampaign(String[] pCamp_ids,
List<String> pReciepientAddresses, campaign pCampObj,
ThemeDisplay pThemeDisplay, OPERATION pOperation,
List<String> pSmptpObjList, String pLogoPath) {
GenerateCampaignEmailMessage(pCamp_ids, pReciepientAddresses, pCampObj,
pThemeDisplay, pOperation, pSmptpObjList, pLogoPath);
}
}
以下是调用上述方法的 RestaurantPortlet 类的代码
EmailNotification emailnotifyObj = new EmailNotification();
emailnotifyObj.SendEmailNotificationForAdvertise(sAdvIds,
RecipientAdress, updatedAdv, pthemeDisplay,
OPERATION.AD_DELETE, ReadSmtpDataForMailNotification(), pthemeDisplay.getPortalURL()+"/eMenuAdvertise-portlet/img/eMenuLogo.png");
那么我如何使用线程实现 SendEmailNotificationForCampaign 方法。谁能让我指导一下?我是线程概念的新手。