Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Request Manager > Customizing the Arbortext PE Request Manager > Writing a Custom Queue > Fundamental Queue Methods > The enqueue Method
  
The enqueue Method
This method is called by a Queue Manager with the afterRestart parameter set to false to determine whether the queue is willing to store the indicated transaction . This method is called by the Arbortext PE Request Manager with afterRestart set to true after the Arbortext PE Request Manager restarts, to restore a transaction that was queued but not executed to completion prior to the restart.
The queue should respond whether it is willing to store the transaction. If it is, it should add the transaction to its list and return true. If it is not, then it should return false.
The queue can assume that if afterRestart is set to true, its sort method will be called after all transactions have been inserted.