1 21 22 package org.jacorb.notification.engine; 23 24 import org.apache.avalon.framework.configuration.Configuration; 25 import org.jacorb.notification.conf.Attributes; 26 import org.jacorb.notification.conf.Default; 27 import org.jacorb.notification.interfaces.IProxyPushSupplier; 28 29 33 public class TaskProcessorRetryStrategyFactory implements RetryStrategyFactory 34 { 35 private final TaskProcessor taskProcessor_; 36 private final int backoutInterval_; 37 38 public TaskProcessorRetryStrategyFactory(Configuration config, TaskProcessor taskProcessor) 39 { 40 super(); 41 42 backoutInterval_ = config.getAttributeAsInteger(Attributes.BACKOUT_INTERVAL, 43 Default.DEFAULT_BACKOUT_INTERVAL); 44 45 taskProcessor_ = taskProcessor; 46 } 47 48 public RetryStrategy newRetryStrategy(IProxyPushSupplier pushSupplier, 49 PushOperation pushOperation) 50 { 51 return new TaskProcessorRetryStrategy(pushSupplier, pushOperation, taskProcessor_, backoutInterval_); 52 } 53 } 54 | Popular Tags |