Resolves checkstyle errors for eip-* (#1069)
* Reduces checkstyle errors in eip-aggregator * Reduces checkstyle errors in eip-message-channel * Reduces checkstyle errors in eip-publish-subscribe * Reduces checkstyle errors in eip-splitter * Reduces checkstyle errors in eip-wire-tap
This commit is contained in:
committed by
Ilkka Seppälä
parent
f2c91eb836
commit
7c888e8886
@ -31,30 +31,28 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* There are well-established patterns for implementing broadcasting. The Observer pattern describes
|
||||
* the need to decouple observers from their subject (that is, the originator of the event) so that
|
||||
* the subject can easily provide event notification to all interested observers no matter how many
|
||||
* observers there are (even none). The Publish-Subscribe pattern expands upon Observer by adding
|
||||
* the notion of an event channel for communicating event notifications.
|
||||
* <p>
|
||||
* A Publish-Subscribe Channel works like this: It has one input channel that splits into multiple
|
||||
* output channels, one for each subscriber. When an event is published into the channel, the
|
||||
* Publish-Subscribe Channel delivers a copy of the message to each of the output channels. Each
|
||||
*
|
||||
* <p>A Publish-Subscribe Channel works like this: It has one input channel that splits into
|
||||
* multiple output channels, one for each subscriber. When an event is published into the channel,
|
||||
* the Publish-Subscribe Channel delivers a copy of the message to each of the output channels. Each
|
||||
* output end of the channel has only one subscriber, which is allowed to consume a message only
|
||||
* once. In this way, each subscriber gets the message only once, and consumed copies disappear from
|
||||
* their channels.
|
||||
* <p>
|
||||
* In this example we use Apache Camel to establish a Publish-Subscribe Channel from "direct-origin"
|
||||
* to "mock:foo", "mock:bar" and "stream:out".
|
||||
*
|
||||
*
|
||||
* <p>In this example we use Apache Camel to establish a Publish-Subscribe Channel from
|
||||
* "direct-origin" to "mock:foo", "mock:bar" and "stream:out".
|
||||
*/
|
||||
public class App {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(App.class);
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
* Program entry point.
|
||||
*/
|
||||
public static void main(String[] args) throws Exception {
|
||||
CamelContext context = new DefaultCamelContext();
|
||||
|
Reference in New Issue
Block a user