Package sk.iway.iwcm.dmail
Class Sender
java.lang.Object
java.util.TimerTask
sk.iway.iwcm.dmail.Sender
- All Implemented Interfaces:
Runnable
Rozposielac emailov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
addClickInfo
(String body, int emailId, String baseHref) Do tela stranky prida linkam statistiku pre kliknutiavoid
static int
Verifikuje, ci zadany hash pre kliknutie je platny, ak ano, vrati ID emailu (email_id), inak vrati -1static Sender
Gets the instance attribute of the Sender classint
boolean
isActive()
Gets the active attribute of the Sender objectstatic void
Sender sa dotazuje databazy len raz za nejaky cas, toto ho zresetujevoid
run()
Main processing method for the Sender objectvoid
setActive
(boolean active) Sets the active attribute of the Sender objectstatic void
setMaxRetryCount
(int count) Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
MAX_RETRY_COUNT
public static int MAX_RETRY_COUNTDescription of the Field -
CONTEXT_NAME
Description of the Field- See Also:
-
FROM_EMAIL_ID_KEY
- See Also:
-
-
Constructor Details
-
Sender
public Sender()Constructor for the Sender object
-
-
Method Details
-
resetSenderWait
public static void resetSenderWait()Sender sa dotazuje databazy len raz za nejaky cas, toto ho zresetuje -
getInstance
Gets the instance attribute of the Sender class- Returns:
- The instance value
-
run
public void run()Main processing method for the Sender object -
cancelTask
public void cancelTask() -
setActive
public void setActive(boolean active) Sets the active attribute of the Sender object- Parameters:
active
- The new active value
-
isActive
public boolean isActive()Gets the active attribute of the Sender object- Returns:
- The active value
-
getToSendCount
public int getToSendCount() -
addClickInfo
Do tela stranky prida linkam statistiku pre kliknutia- Parameters:
body
-- Returns:
-
getEmailIdFromClickHash
Verifikuje, ci zadany hash pre kliknutie je platny, ak ano, vrati ID emailu (email_id), inak vrati -1- Parameters:
hash
-- Returns:
-
setMaxRetryCount
public static void setMaxRetryCount(int count)
-