make Serializable to prevent NotSerializableException in weblogic (AMQ-501) - Patrick Villacorta

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@374605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Frederick G. Oconer 2006-02-03 08:48:25 +00:00
parent fb7ba93b64
commit 82d60e1291
2 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,7 @@
*/
package org.apache.activemq;
import java.io.Serializable;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@ -25,7 +25,7 @@ import org.apache.commons.logging.LogFactory;
* Defines the pretech message policies for different types of consumers
* @version $Revision: 1.3 $
*/
public class ActiveMQPrefetchPolicy {
public class ActiveMQPrefetchPolicy implements Serializable {
private static final Log log = LogFactory.getLog(ActiveMQPrefetchPolicy.class);
private static final int MAX_PREFETCH_SIZE = (Short.MAX_VALUE -1);
private int queuePrefetch;

View File

@ -16,13 +16,15 @@
*/
package org.apache.activemq;
import java.io.Serializable;
/**
* Configuration options used to control how messages are re-delivered when they
* are rolled back.
*
* @version $Revision: 1.11 $
*/
public class RedeliveryPolicy implements Cloneable {
public class RedeliveryPolicy implements Cloneable, Serializable {
protected int maximumRedeliveries = 5;
protected long initialRedeliveryDelay = 1000L;