Class GearmanJobResultImpl

    • Constructor Detail

      • GearmanJobResultImpl

        public GearmanJobResultImpl​(byte[] handle)
      • GearmanJobResultImpl

        public GearmanJobResultImpl​(byte[] handle,
                                    boolean succeeded,
                                    byte[] results,
                                    byte[] warnings,
                                    byte[] exceptions,
                                    long numerator,
                                    long denominator)
    • Method Detail

      • getResults

        public byte[] getResults()
        Description copied from interface: GearmanJobResult
        Retrieve the results generated by the GearmanJob which generated this GearmanJobResult
        Specified by:
        getResults in interface GearmanJobResult
        Returns:
        the results generated by the job or an empty array if no results were generated.
      • getWarnings

        public byte[] getWarnings()
        Description copied from interface: GearmanJobResult
        Retrieve the warnings generated by the GearmanJob which generated this GearmanJobResult
        Specified by:
        getWarnings in interface GearmanJobResult
        Returns:
        the warnings generated by the job or an empty array if no warnings were generated.
      • getExceptions

        public byte[] getExceptions()
        Description copied from interface: GearmanJobResult
        Retrieve the exceptions generated by the GearmanJob which generated this GearmanJobResult
        Specified by:
        getExceptions in interface GearmanJobResult
        Returns:
        the exceptions generated by the job or an empty array if no exceptions were generated.
      • getJobHandle

        public byte[] getJobHandle()
        Description copied from interface: GearmanJobResult
        Retrieves the job handle for the job which generated this GearmanJobResult.
        Specified by:
        getJobHandle in interface GearmanJobResult
        Returns:
        the job handle
      • jobSucceeded

        public boolean jobSucceeded()
        Description copied from interface: GearmanJobResult
        Determine with the job completed with out encountering exceptions or problems.
        Specified by:
        jobSucceeded in interface GearmanJobResult
        Returns:
        true if the job completed successfully, else false.