public class MetadataFlagPoolingFutureExceptionStrategy extends java.lang.Object implements PoolingFutureExceptionStrategy
This strategy is useful if messages within a split-join are transient, and can be ignored provided some of them work; it allows
you to ignore exceptions processing individual mesages provided one or more messages have set a specific metadata to the value
true | 1
.
In the adapter configuration file this class is aliased as metadata-flag-pooling-future-exception-strategy which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MetadataFlagPoolingFutureExceptionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
handle(ServiceExceptionHandler handler,
java.util.List<java.util.concurrent.Future<AdaptrisMessage>> results) |
void |
setMetadataFlagKey(java.lang.String metadataKey) |
public MetadataFlagPoolingFutureExceptionStrategy()
public void handle(ServiceExceptionHandler handler, java.util.List<java.util.concurrent.Future<AdaptrisMessage>> results) throws CoreException
handle
in interface PoolingFutureExceptionStrategy
CoreException
public void setMetadataFlagKey(java.lang.String metadataKey)