org.gearman.client.GearmanJobResult Maven / Gradle / Ivy
/*
* Copyright (C) 2009 by Eric Lambert
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
package org.gearman.client;
public interface GearmanJobResult {
/**
* Retrieve the results generated by the {@link GearmanJob} which generated
* this GearmanJobResult
*
* @return the results generated by the job or an empty array if no results
* were generated.
*/
byte[] getResults();
/**
* Retrieve the warnings generated by the {@link GearmanJob} which generated
* this GearmanJobResult
*
* @return the warnings generated by the job or an empty array if no
* warnings were generated.
*/
byte[] getWarnings();
/**
* Retrieve the exceptions generated by the {@link GearmanJob} which
* generated this GearmanJobResult
*
* @return the exceptions generated by the job or an empty array if no
* exceptions were generated.
*/
byte[] getExceptions();
/**
* Retrieves the denominator value as generated by the {@link GearmanJob}
*
* @return denominator value.
*/
long getDenominator();
/**
* Retrieves the numerator value as generated by the {@link GearmanJob}
*
* @return numerator value.
*/
long getNumerator();
/**
* Retrieves the job handle for the job which generated this
* GearmanJobResult.
*
* @return the job handle
*/
byte[] getJobHandle();
/**
* Determine with the job completed with out encountering exceptions or
* problems.
*
* @return true if the job completed successfully, else false.
*/
boolean jobSucceeded();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy