OutgoingPayloadsTask

public class OutgoingPayloadsTask extends ActiveTaskAdaptor

What the task does

  • Update the status of message to segmentating (status: ST).
  • Analyze the payload and save the segment record to the database.
  • Update the status of message to processing (status: PR).

Creation Date: 24/10/2006.

Author:Twinsen Tsang

Constructors

OutgoingPayloadsTask

public OutgoingPayloadsTask(PackagedPayloads payload, SFRMPartnershipDVO pDVO, String status)

Explicit Constructor.

Parameters:
  • payload – The packaged payload file.
  • pDVO – TODO
  • status – The status of the for process
Throws:
  • NullPointerException – if the input payload is null.
  • DAOException – if fail to retreve the partnership.
  • IOException

Methods

execute

public void execute()

Execute the active task.

See also: hk.hku.cecid.piazza.commons.module.ActiveTask.execute()

getMaxRetries

public int getMaxRetries()

getRetryInterval

public long getRetryInterval()

isRetryEnabled

public boolean isRetryEnabled()

onFailure

public void onFailure(Throwable e)

Invoke when failure.

setRetried

public void setRetried(int retried)