Class Sender

java.lang.Object
java.util.TimerTask
sk.iway.iwcm.dmail.Sender
All Implemented Interfaces:
Runnable

public class Sender extends TimerTask
Rozposielac emailov
  • Field Details

    • MAX_RETRY_COUNT

      public static int MAX_RETRY_COUNT
      Description of the Field
    • CONTEXT_NAME

      public static final String CONTEXT_NAME
      Description of the Field
      See Also:
    • FROM_EMAIL_ID_KEY

      public static final String 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

      public static Sender getInstance()
      Gets the instance attribute of the Sender class
      Returns:
      The instance value
    • run

      public void run()
      Main processing method for the Sender object
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • 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

      public static String addClickInfo(String body, int emailId, String baseHref)
      Do tela stranky prida linkam statistiku pre kliknutia
      Parameters:
      body -
      Returns:
    • getEmailIdFromClickHash

      public static int getEmailIdFromClickHash(String hash)
      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)