Skip to content

Commit 0a4e525

Browse files
Javadocs
1 parent b34adf8 commit 0a4e525

File tree

3 files changed

+425
-2
lines changed

3 files changed

+425
-2
lines changed

sdk-common/src/main/java/dev/restate/sdk/endpoint/Endpoint.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ public Builder bind(Object service, HandlerRunner.Options options) {
7979
* Same as {@link #bind(Object)} but allows to configure the {@link ServiceDefinition} before
8080
* binding it.
8181
*
82+
* <pre>{@code
83+
* Endpoint endpoint = Endpoint
84+
* .builder()
85+
* .bind(
86+
* new Counter(),
87+
* // Configure the service
88+
* s -> s.journalRetention(Duration.ofDays(1))
89+
* )
90+
* .build();
91+
* }</pre>
92+
*
8293
* @see #bind(Object)
8394
* @see ServiceDefinition.Configurator
8495
*/

0 commit comments

Comments
 (0)