org.ow2.petals.se.eip.patterns
Interface Pattern

All Known Implementing Classes:
AbstractAggregatorPattern, AbstractMEPBridgePattern, AbstractMEPBridgeWithUnicConsumesPattern, AbstractPattern, Aggregator, Bridge, Dispatcher, DynamicRouter, Router, RoutingSlip, ScatterGather, Splitter, WireTap

public interface Pattern

The pattern interface

Author:
alouis - EBM WebSourcing, chamerling - EBM WebSourcing, fgardes - EBM WebSourcing

Method Summary
 java.lang.String getName()
          Get the pattern name.
 void init()
          Initialize the pattern
 boolean processAsyncPattern(org.ow2.petals.component.framework.api.message.Exchange exchange, ExchangeContext context, CommonAsyncContext asyncContext, boolean expired)
          Process an exchange for an asynchronous pattern.
 boolean processPattern(org.ow2.petals.component.framework.api.message.Exchange exchange, ExchangeContext context)
          Process the Pattern.
 

Method Detail

init

void init()
Initialize the pattern


processPattern

boolean processPattern(org.ow2.petals.component.framework.api.message.Exchange exchange,
                       ExchangeContext context)
Process the Pattern.

Parameters:
exchange - The exchange to process
context - The context of the exchange

processAsyncPattern

boolean processAsyncPattern(org.ow2.petals.component.framework.api.message.Exchange exchange,
                            ExchangeContext context,
                            CommonAsyncContext asyncContext,
                            boolean expired)
Process an exchange for an asynchronous pattern.

Parameters:
exchange - The exchange to process
context - The context of the exchange
asyncContext - The EIP asynchronous context
expired - true if the asynchronous exchange is expired, false else

getName

java.lang.String getName()
Get the pattern name.

Returns:
The name


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.