ObservationHandler that converts the context to text and publishes it to the
Consumer of your choice.
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private final Function | |
| private final Predicate |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ObservationTextPublisher(Consumer<String>
Where to publish the context as text consumer)Creates a publisher that sends the context as text to the given |
| public | ObservationTextPublisher(Consumer<String>
Where to publish the context as text consumer, Predicate<Observation.Whether the publisher should support the given
context supportsContextPredicateCreates a publisher that sends the context as text to the given |
| public | ObservationTextPublisher(Consumer<String>
Where to publish the context as text consumer, Predicate<Observation.Whether the publisher should support the given
context supportsContextPredicate,Converts the converterObservation. to a StringCreates a publisher that sends the context as text to the given |
| consumer | back to summary |
|---|---|
| private final Consumer<String> consumer | |
| converter | back to summary |
|---|---|
| private final Function<Observation. | |
| supportsContextPredicate | back to summary |
|---|---|
| private final Predicate<Observation. | |
| ObservationTextPublisher | back to summary |
|---|---|
| public ObservationTextPublisher() Creates a publisher that sends the context as text to the given | |
| ObservationTextPublisher | back to summary |
|---|---|
| public ObservationTextPublisher(Consumer<String> consumer) Creates a publisher that sends the context as text to the given | |
| ObservationTextPublisher | back to summary |
|---|---|
| public ObservationTextPublisher(Consumer<String> consumer, Predicate<Observation. Creates a publisher that sends the context as text to the given
| |
| ObservationTextPublisher | back to summary |
|---|---|
| public ObservationTextPublisher(Consumer<String> consumer, Predicate<Observation. Creates a publisher that sends the context as text to the given
| |
| onError | back to summary |
|---|---|
| public void onError(Observation. Overrides default io. Doc from io. Reacts to an error during an
| |
| onEvent | back to summary |
|---|---|
| public void onEvent(Observation. Overrides default io. Doc from io. Reacts to arbitrary
| |
| onScopeClosed | back to summary |
|---|---|
| public void onScopeClosed(Observation. Overrides default io. Doc from io. Reacts to closing of an
| |
| onScopeOpened | back to summary |
|---|---|
| public void onScopeOpened(Observation. Overrides default io. Doc from io. Reacts to opening of an
| |
| onStart | back to summary |
|---|---|
| public void onStart(Observation. Overrides default io. Doc from io. Reacts to starting of an
| |
| onStop | back to summary |
|---|---|
| public void onStop(Observation. Overrides default io. Doc from io. Reacts to stopping of an
| |
| publish | back to summary |
|---|---|
| private void publish(String event, Observation. | |
| publishUnformatted | back to summary |
|---|---|
| private void publishUnformatted(String event) | |
| supportsContext | back to summary |
|---|---|
| public boolean supportsContext(Observation. Implements io. Doc from io. Tells the registry whether this handler should be applied for a given
| |