Interface JobFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void adopt​(com.levigo.jadice.server.client.internal.DefaultJobInternalImpl job)  
      void close()
      Closes this JobFactory and releases all resources held by it.
      void connect()
      Performs all actions that are required before Jobs can be created
      Job createJob()
      Create a job with the defaults as defined by the particular JobFactory implementation.
    • Method Detail

      • connect

        void connect()
              throws ConnectionException
        Performs all actions that are required before Jobs can be created
        Throws:
        ConnectionException - if the connection to the underlying communication infrastructure could not be established
      • close

        void close()
        Closes this JobFactory and releases all resources held by it.

        If it is possible to connect() again is implementation specific. See the javadoc of the concrete implementation.

        Specified by:
        close in interface AutoCloseable
      • createJob

        Job createJob()
               throws JobException
        Create a job with the defaults as defined by the particular JobFactory implementation.
        Returns:
        a newly created job
        Throws:
        JobException - if Job creation failed
      • adopt

        void adopt​(com.levigo.jadice.server.client.internal.DefaultJobInternalImpl job)
            throws JobException
        Throws:
        JobException