You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/dsl.adoc
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -206,13 +206,16 @@ The `Pollers` builder factory can be used to configure common bean definitions o
206
206
[source,java]
207
207
----
208
208
@Bean(name = PollerMetadata.DEFAULT_POLLER)
209
-
public PollerMetadata poller() {
210
-
return Pollers.fixedRate(500).get();
209
+
public PollerSpec poller() {
210
+
return Pollers.fixedRate(500)
211
+
.errorChannel("myErrors");
211
212
}
212
213
----
213
214
214
215
See `Pollers` and `PollerSpec` Java Docs for more information.
215
216
217
+
IMPORTANT: If you use the DSL to construct a `PollerSpec` as a `@Bean`, do not call the `get()` method in the bean definition; the `PollerSpec` is a `FactoryBean` that will generate the `PollerMetadata` object from the specification and initialize all of its properties as needed.
0 commit comments