Skip to content

Commit

Permalink
keep our APR promise to not remove methods in 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Mar 31, 2008
1 parent 8310620 commit b5854c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Expand Up @@ -20,9 +20,13 @@

package org.jumpmind.symmetric.service;

import java.util.List;

import org.jumpmind.symmetric.model.BatchInfo;

public interface IAcknowledgeService
{
public void ack(List<BatchInfo> batches);

public void ack(BatchInfo batch);
}
Expand Up @@ -24,6 +24,7 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.jumpmind.symmetric.model.BatchInfo;
import org.jumpmind.symmetric.model.OutgoingBatch.Status;
Expand All @@ -42,6 +43,12 @@ public class AcknowledgeService extends AbstractService implements IAcknowledgeS

private IOutgoingBatchHistoryService outgoingBatchHistoryService;

public void ack(final List<BatchInfo> batches) {
for (BatchInfo batch : batches) {
ack(batch);
}
}

@Transactional
public void ack(final BatchInfo batch) {
final Integer id = new Integer(batch.getBatchId());
Expand Down
Expand Up @@ -22,11 +22,17 @@
*/
package org.jumpmind.symmetric.service.mock;

import java.util.List;

import org.jumpmind.symmetric.model.BatchInfo;
import org.jumpmind.symmetric.service.IAcknowledgeService;

public class MockAcknowledgeService implements IAcknowledgeService {

public void ack(List<BatchInfo> batches) {

}

public void ack(BatchInfo batch) {

}
Expand Down

0 comments on commit b5854c1

Please sign in to comment.