1 10 11 package org.mule.impl.model.seda; 12 13 import org.mule.MuleManager; 14 import org.mule.impl.MuleDescriptor; 15 import org.mule.impl.model.AbstractModel; 16 import org.mule.umo.UMOComponent; 17 import org.mule.umo.UMODescriptor; 18 19 26 public class SedaModel extends AbstractModel 27 { 28 29 32 private int queueTimeout = MuleManager.getConfiguration().getSynchronousEventTimeout(); 33 34 37 private boolean enablePooling = true; 38 39 42 protected boolean componentPerRequest = false; 43 44 50 public String getType() 51 { 52 return "seda"; 53 } 54 55 protected UMOComponent createComponent(UMODescriptor descriptor) 56 { 57 return new SedaComponent((MuleDescriptor)descriptor, this); 58 } 59 60 public int getQueueTimeout() 61 { 62 return queueTimeout; 63 } 64 65 public void setQueueTimeout(int queueTimeout) 66 { 67 this.queueTimeout = queueTimeout; 68 } 69 70 public boolean isEnablePooling() 71 { 72 return enablePooling; 73 } 74 75 public void setEnablePooling(boolean enablePooling) 76 { 77 this.enablePooling = enablePooling; 78 } 79 80 public boolean isComponentPerRequest() 81 { 82 return componentPerRequest; 83 } 84 85 public void setComponentPerRequest(boolean componentPerRequest) 86 { 87 this.componentPerRequest = componentPerRequest; 88 } 89 } 90 | Popular Tags |