com.leonarduk.clearcheckbook.processor.ClearCheckBookTaskSerialProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clearcheckbookapi Show documentation
Show all versions of clearcheckbookapi Show documentation
A Java library to access the HTTP developer API for
Clearcheckbook.com, the money management website.
/**
* ClearCheckBookTaskSerialProcessor
*
* @author ${author}
* @since 10-Jul-2016
*/
package com.leonarduk.clearcheckbook.processor;
import java.util.List;
import com.leonarduk.clearcheckbook.ClearcheckbookException;
import com.leonarduk.clearcheckbook.calls.BulkProcessable;
import com.leonarduk.clearcheckbook.dto.AbstractDataType;
/**
* The Class ClearCheckBookTaskSerialProcessor.
*
* @param
* the generic type
*/
public class ClearCheckBookTaskSerialProcessor>
implements ClearCheckBookTaskProcessor {
/** The call. */
private final BulkProcessable call;
/**
* Instantiates a new clear check book task serial processor.
*
* @param call
* the call
*/
public ClearCheckBookTaskSerialProcessor(final BulkProcessable call) {
this.call = call;
}
/*
* (non-Javadoc)
*
* @see
* com.leonarduk.clearcheckbook.processor.ClearCheckBookTaskProcessor#processQueue(java.util.
* List)
*/
@Override
public List processQueue(final List dataTypeList) throws ClearcheckbookException {
return this.call.bulkProcess(dataTypeList);
}
}