|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface WireTap
An inbound router that can forward every message to another destination as defined in the "endpoint" property. This can be a logical destination of a URI.
A filter can be applied to this router so that only events matching a criteria will be tapped.
| Required Element Summary | |
|---|---|
String |
endpoint
The name or URI address of the endpoint to use. |
| Optional Element Summary | |
|---|---|
String |
connectorName
The connector name that will be used to receive events. |
String |
encoding
Decides the encoding to be used for events received by this endpoint. |
String |
filter
An expression filter used to filter out unwanted messages. |
String |
properties
A comma-separated list of key/value pairs, e.g., "apple=green, banana=yellow"
Property placeholders can be used in these values:
"apple=${apple.color}, banana=yellow" |
String |
transformers
Transformers are responsible for transforming data when it is sent after the annotated service has finished processing. |
| Element Detail |
|---|
public abstract String endpoint
@WireTap(endpoint = "${my.endpoint}")
The endpoint would then be resolved to a property called 'my.endpoint' that is regeistered with the registry.
Note that the endpoint for a wire tap is always asynchronous.
public abstract String connectorName
public abstract String encoding
public abstract String properties
"apple=green, banana=yellow"
Property placeholders can be used in these values:
"apple=${apple.color}, banana=yellow"
public abstract String transformers
public abstract String filter
filter = "#[wildcard:*.txt]"
or
filter = "#[xpath:count(Batch/Trade/GUID) > 0]"
Filter expressions must result in a boolean or null to mean false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||