Interface LifecycleManager

  • All Known Implementing Classes:
    LifecycleManagerImpl

    public interface LifecycleManager
    Lifecycle Manager will be used to manage the lifecycle of attachment files. Axiom forks attachment processing based on the size of attachment to be processed. Attachments are either processed by storing them in memory or by storing them in file system based on the size of the attachment file. Lifecycle Manager provides and organized way of managing attachments, by providing calls to create and delete attachments.
    • Method Detail

      • deleteOnExit

        void deleteOnExit​(File file)
                   throws IOException
        Mark the file for deletion on application/VM exit
        Parameters:
        file -
        Throws:
        IOException
      • deleteOnTimeInterval

        void deleteOnTimeInterval​(int interval,
                                  File file)
                           throws IOException
        Mark attachment file for deletion when designated time interval in seconds has elapsed.
        Parameters:
        interval -
        file -
        Throws:
        IOException