@RestController @MessageEndpoint @IntegrationComponentScan public class DemoApplication extends Object
| Constructor and Description |
|---|
DemoApplication() |
| Modifier and Type | Method and Description |
|---|---|
List<org.springframework.cloud.sleuth.Span> |
allSpans() |
int |
count(List<String> greeting) |
org.springframework.cloud.sleuth.Span |
getAggregatorSpan() |
String |
getBaggageValue() |
org.springframework.cloud.sleuth.Span |
getHttpSpan() |
org.springframework.cloud.sleuth.Span |
getServiceActivatorSpan() |
org.springframework.cloud.sleuth.Span |
getSplitterSpan() |
org.springframework.cloud.sleuth.baggage.multiple.Greeting |
greeting(String message,
org.springframework.http.HttpHeaders headers) |
void |
report(int count) |
List<String> |
words(String greeting) |
@RequestMapping(value="/greeting")
public org.springframework.cloud.sleuth.baggage.multiple.Greeting greeting(@RequestParam(defaultValue="Hello World!")
String message,
@RequestHeader
org.springframework.http.HttpHeaders headers)
@Splitter(inputChannel="greetings",
outputChannel="words")
public List<String> words(String greeting)
@Aggregator(inputChannel="words",
outputChannel="counts")
public int count(List<String> greeting)
@ServiceActivator(inputChannel="counts") public void report(int count)
public org.springframework.cloud.sleuth.Span getHttpSpan()
public org.springframework.cloud.sleuth.Span getSplitterSpan()
public org.springframework.cloud.sleuth.Span getAggregatorSpan()
public org.springframework.cloud.sleuth.Span getServiceActivatorSpan()
public String getBaggageValue()
public List<org.springframework.cloud.sleuth.Span> allSpans()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.