LibraryToggle FramesPrintFeedback

The polling consumer pattern, shown in Figure 9.2, is a pattern for implementing the consumer endpoint in a Fuse Mediation Router component, so it is only relevant to programmers who need to develop a custom component in Fuse Mediation Router. Existing components already have a consumer implementation pattern hard-wired into them.

Consumers that conform to this pattern expose polling methods, receive(), receive(long timeout), and receiveNoWait() that return a new exchange object, if one is available from the monitored resource. A polling consumer implementation must provide its own thread pool to perform the polling.

For more details about this implementation pattern, see Consumer Patterns and Threading in Programing EIP Components, Consumer Interface in Programing EIP Components, and Using the Consumer Template in Programing EIP Components.


Comments powered by Disqus
loading table of contents...