Search in sources :

Example 21 with PoolingWorkflow

use of com.adaptris.core.PoolingWorkflow in project interlok by adaptris.

the class InFlightWorkflowInterceptorTest method createPoolingWorkflow.

protected static PoolingWorkflow createPoolingWorkflow(String uid, WorkflowInterceptor... interceptors) throws CoreException {
    PoolingWorkflow wf = new PoolingWorkflow();
    wf.setUniqueId(uid);
    for (WorkflowInterceptor wi : interceptors) {
        wf.addInterceptor(wi);
    }
    return wf;
}
Also used : WorkflowInterceptor(com.adaptris.core.WorkflowInterceptor) PoolingWorkflow(com.adaptris.core.PoolingWorkflow)

Aggregations

PoolingWorkflow (com.adaptris.core.PoolingWorkflow)21 Test (org.junit.Test)17 Channel (com.adaptris.core.Channel)15 TimeInterval (com.adaptris.util.TimeInterval)10 MockMessageProducer (com.adaptris.core.stubs.MockMessageProducer)9 AdaptrisMessage (com.adaptris.core.AdaptrisMessage)8 StandaloneProducer (com.adaptris.core.StandaloneProducer)8 WaitService (com.adaptris.core.services.WaitService)8 Adapter (com.adaptris.core.Adapter)7 StaticMockMessageProducer (com.adaptris.core.stubs.StaticMockMessageProducer)6 ObjectName (javax.management.ObjectName)5 HttpRequestService (com.adaptris.core.http.client.net.HttpRequestService)4 StandardWorkflow (com.adaptris.core.StandardWorkflow)3 Notification (javax.management.Notification)3 NotificationFilterSupport (javax.management.NotificationFilterSupport)3 JettyMessageConsumer (com.adaptris.core.http.jetty.JettyMessageConsumer)2 MessageInFlightMBean (com.adaptris.core.interceptor.MessageInFlightMBean)2 PayloadFromTemplateService (com.adaptris.core.services.metadata.PayloadFromTemplateService)2 CoreException (com.adaptris.core.CoreException)1 ProduceException (com.adaptris.core.ProduceException)1