Skip to content

Commit

Permalink
Adding Tim Morrow's BatchMessageListener.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh committed Jul 27, 2010
1 parent 0518555 commit e3f0e9f
Show file tree
Hide file tree
Showing 2 changed files with 439 additions and 0 deletions.
@@ -0,0 +1,47 @@
/*
*
* Copyright (C) 2010 Shopzilla, Inc
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*
* http://tech.shopzilla.com
*
*
*/

package com.shopzilla.spring.messaging.jms.mdp.batch;

import java.util.Collection;

import javax.jms.Message;


/**
* Similar to a JMS message listener, but receives a collection of messages.
*
* @author Tim Morrow
* @since Sep 27, 2006
*/
public interface BatchMessageListener {

/**
* Invoked when a batch of messages are ready.
*
* @param messages the messages
*/
void onMessages(Collection<Message> messages);
}

0 comments on commit e3f0e9f

Please sign in to comment.