IBM Streams 4.2

Operators that support consistent regions

An operator might not support all of its possible parameters when it is in a consistent region.

These lists summarize support for operators that are included in the SPL standard toolkit (spl) and specialized toolkits. Review the documentation for the specific operator to find out the details of support.

The following operators can start a consistent region. These start operators of a consistent region typically are source operators.

The following operators can be in a consistent region with any of its possible parameters.

The following operators can be in a consistent region with a limited set of parameters or application topology configurations.

For any SPL standard toolkit operator not supporting consistent regions, placing the operator in a consistent region generates a compile-time error. User-written operators should use the SPL Operator Code Generation API to check whether the operator is in a consistent region and issue an error message. The following code snippet shows some sample code for C++ primitive operators:
my $isInConsistentRegion = $model->getContext()->getOptionalContext("ConsistentRegion");
    if ($isInConsistentRegion) {
      SPL::CodeGen::exitln(SPL::Msg::OP_CANNOT_LIVE_IN_CC_REGION($model->getContext()->getKind()),
          $model->getContext()->getSourceLocation());
    }