All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.mt.tools.PollingResponse Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/*******************************************************************************
 *   © 2019-2024 SAP SE or an SAP affiliate company. All rights reserved.
 ******************************************************************************/

package com.sap.cloud.mt.tools;

public class PollingResponse {
	private boolean finished;
	private Exception exception;
	private T result;

	public PollingResponse() {
	}

	public PollingResponse(boolean finished, Exception exception, T result) {
		this.finished = finished;
		this.exception = exception;
		this.result = result;
	}

	public void copyFrom(PollingResponse source) {
		finished = source.isFinished();
		exception = source.getException();
		result = source.getResult();
	}

	public boolean isFinished() {
		return finished;
	}

	public void setFinished(boolean finished) {
		this.finished = finished;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy