@Override public void configure(MuleContext muleContext) throws ConfigurationException, InitialisationException { // Configure for (ConfigurationBuilder configBuilder : configurationBuilders) { configBuilder.configure(muleContext); } notifyMuleContextConfiguration(muleContext); } });
public void setMuleContext(MuleContext muleContext) { this.muleContext = muleContext; if (this.threadingProfile != null && muleContext != null) { threadingProfile.setMuleContext(muleContext); } }
public ImmutableThreadingProfile(ThreadingProfile tp) { this(tp.getMaxThreadsActive(), tp.getMaxThreadsIdle(), tp.getMaxBufferSize(), tp.getThreadTTL(), tp.getThreadWaitTimeout(), tp.getPoolExhaustedAction(), tp.isDoThreading(), tp.getRejectedExecutionHandler(), tp.getThreadFactory()); }
public synchronized void start() throws MuleException { gracefulShutdownTimeout = getMuleContext().getConfiguration().getShutdownTimeout(); if (workExecutorService == null) { workExecutorService = threadingProfile.createPool(name); } }
public int getMaxThreadsActive() { return null != maxThreadsActive ? maxThreadsActive : delegate.getMaxThreadsActive(); }
public String getWorkingDirectory() { return muleConfiguration.getWorkingDirectory(); }
public int getShutdownTimeout() { return muleConfiguration.getShutdownTimeout(); }
public String getEncoding() { return muleConfiguration.getDefaultEncoding(); }
public int getSynchronousEventTimeout() { return muleConfiguration.getDefaultResponseTimeout(); }
public int getMaxThreadsIdle() { return null != maxThreadsIdle ? maxThreadsIdle : delegate.getMaxThreadsIdle(); }
public int getTransactionTimeout() { return muleConfiguration.getDefaultTransactionTimeout(); }
public boolean isClientMode() { return muleConfiguration.isClientMode(); }
public boolean isContainerMode() { return muleConfiguration.isContainerMode(); }
public boolean isDoThreading() { return null != doThreading ? doThreading : delegate.isDoThreading(); }
public int getMaxBufferSize() { return null != maxBufferSize ? maxBufferSize : delegate.getMaxBufferSize(); }
public long getThreadTTL() { return null != threadTTL ? threadTTL : delegate.getThreadTTL(); }
public int getPoolExhaustedAction() { return null != poolExhaustedAction ? poolExhaustedAction : delegate.getPoolExhaustedAction(); }
public long getThreadWaitTimeout() { return null != threadWaitTimeout ? threadWaitTimeout : delegate.getThreadWaitTimeout(); }
public MutableThreadingProfile(ThreadingProfile tp) { this.maxThreadsActive = tp.getMaxThreadsActive(); this.maxThreadsIdle = tp.getMaxThreadsIdle(); this.maxBufferSize = tp.getMaxBufferSize(); this.threadTTL = tp.getThreadTTL(); this.threadWaitTimeout = tp.getThreadWaitTimeout(); this.poolExhaustedAction = tp.getPoolExhaustedAction(); this.doThreading = tp.isDoThreading(); this.rejectedExecutionHandler = tp.getRejectedExecutionHandler(); this.threadFactory = tp.getThreadFactory(); this.workManagerFactory = tp.getWorkManagerFactory(); this.poolFactory = tp.getPoolFactory(); }
@Override public void configure(MuleContext muleContext) throws ConfigurationException, InitialisationException { configurationBuilder.configure(muleContext); notifyMuleContextConfiguration(muleContext); } });