This documentation is for WSO2 Enterprise Service Bus 3.0.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cache Mediator Attributes:

  • id - The Cache Mediator must be specified with an id and two instances with this same id that  Specify an ID for the Cache Mediator to have two instances with the same id that correlates the response message into the cache for the request message hash, when you have multiple cache mediators within your Synapse configuration.
  • timeout - Optional attribute, which specifies the valid duration for cached elements, and the scope defines if mediator instances share a common cache per every host instance or per every Cache Mediator pair (i.e. id) instance.
  • collector
    • true - The collector attribute true specifies that the mediator instance is a response collection instance.
    • false - The collector attribute false specifies that its a cache serving instance.
  • maxMessageSize - The optional attribute, which specifies the maximum size of a message to be cached in bytes and defaults to unlimited.
  • implementation - The attribute, which defines if the cache is disk or memory based.
  • maxSize - The attribute, which defines the maximum number of elements to be cached.

...

Cache Mediator General Options
Anchor
Cache Mediator General Options
Cache Mediator General Options
  • Cache Id - Id for cache Specify an ID for the Cache Mediator to have two instances with the same id that correlates the response message into the cache for the request message hash, when you have multiple cache mediators within your Synapse configuration.
Info
titleNote

You should have the same id for a cache mediator instance in incoming path and the corresponding mediator instance in outgoing message path.

...