Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to SDK 1.0.1 #413

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion code_snippets/java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
mavenCentral()
}

val restateVersion = "1.0.0"
val restateVersion = "1.0.1"

dependencies {
// Restate SDK
Expand Down
2 changes: 1 addition & 1 deletion code_snippets/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repositories {
mavenCentral()
}

val restateVersion = "1.0.0"
val restateVersion = "1.0.1"

dependencies {
// Annotation processor
Expand Down
2 changes: 1 addition & 1 deletion restate.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"RESTATE_VERSION": "1.0",
"TYPESCRIPT_SDK_VERSION": "1.0.0",
"JAVA_SDK_VERSION": "1.0.0"
"JAVA_SDK_VERSION": "1.0.1"
}
4 changes: 2 additions & 2 deletions static/javadocs/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -1023,13 +1023,13 @@ <h2 title="dev.restate">dev.restate.*</h2>
<div class="table-header col-last">Value</div>
<div class="col-first even-row-color"><code id="dev.restate.sdk.version.Version.GIT_HASH">public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color"><code><a href="dev/restate/sdk/version/Version.html#GIT_HASH">GIT_HASH</a></code></div>
<div class="col-last even-row-color"><code>"552ce119"</code></div>
<div class="col-last even-row-color"><code>"fbfb16cc"</code></div>
<div class="col-first odd-row-color"><code id="dev.restate.sdk.version.Version.VERSION">public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second odd-row-color"><code><a href="dev/restate/sdk/version/Version.html#VERSION">VERSION</a></code></div>
<div class="col-last odd-row-color"><code>"1.1.0-SNAPSHOT"</code></div>
<div class="col-first even-row-color"><code id="dev.restate.sdk.version.Version.X_RESTATE_SERVER">public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link">String</a></code></div>
<div class="col-second even-row-color"><code><a href="dev/restate/sdk/version/Version.html#X_RESTATE_SERVER">X_RESTATE_SERVER</a></code></div>
<div class="col-last even-row-color"><code>"restate-sdk-java/1.1.0-SNAPSHOT_552ce119"</code></div>
<div class="col-last even-row-color"><code>"restate-sdk-java/1.1.0-SNAPSHOT_fbfb16cc"</code></div>
</div>
</li>
</ul>
Expand Down
5 changes: 2 additions & 3 deletions static/javadocs/dev/restate/sdk/Context.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,8 @@ <h3>run</h3>
<p>The closure should tolerate retries, that is Restate might re-execute the closure multiple
times until it records a result.

<h4>Error handling</h4>

Errors occurring within this closure won't be propagated to the caller, unless they are <a href="common/TerminalException.html" title="class in dev.restate.sdk.common"><code>TerminalException</code></a>. Consider the following code:
<p><b>Error handling</b>: Errors occurring within this closure won't be propagated to the
caller, unless they are <a href="common/TerminalException.html" title="class in dev.restate.sdk.common"><code>TerminalException</code></a>. Consider the following code:

<pre><code>
// Bad usage of try-catch outside the run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ <h2>Method Summary</h2>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Build the <code>HttpServer</code> serving the Restate service endpoint.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#buildAndListen()" class="member-name-link">buildAndListen</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Build and listen on the port specified by the environment variable <code>PORT</code>, or
alternatively on the default <code>9080</code> port.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#buildAndListen(int)" class="member-name-link">buildAndListen</a><wbr>(int&nbsp;port)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
<div class="block">Build and listen on the specified port.</div>
Expand Down Expand Up @@ -255,16 +255,30 @@ <h3>withRequestIdentityVerifier</h3>
<li>
<section class="detail" id="buildAndListen(int)">
<h3>buildAndListen</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">buildAndListen</span><wbr><span class="parameters">(int&nbsp;port)</span></div>
<div class="block">Build and listen on the specified port.</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">buildAndListen</span><wbr><span class="parameters">(int&nbsp;port)</span></div>
<div class="block">Build and listen on the specified port.

<p>NOTE: this method will block for opening the socket and reserving the port. If you need a
non-blocking variant, manually <a href="#build()"><code>build()</code></a> the server and start listening it.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The listening port</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="buildAndListen()">
<h3>buildAndListen</h3>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">buildAndListen</span>()</div>
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">int</span>&nbsp;<span class="element-name">buildAndListen</span>()</div>
<div class="block">Build and listen on the port specified by the environment variable <code>PORT</code>, or
alternatively on the default <code>9080</code> port.</div>
alternatively on the default <code>9080</code> port.

<p>NOTE: this method will block for opening the socket and reserving the port. If you need a
non-blocking variant, manually <a href="#build()"><code>build()</code></a> the server and start listening it.</div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The listening port</dd>
</dl>
</section>
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion static/ktdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</a>
</div>
<div class="library-version">
1.1.0-SNAPSHOT </div>
1.0.1 </div>
</div>
</div>
<div class="navigation-controls">
Expand Down
2 changes: 1 addition & 1 deletion static/ktdocs/scripts/pages.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
2 changes: 1 addition & 1 deletion static/ktdocs/sdk-api-kotlin-gen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a class="library-name--link" href="../../../index.html">
sdk-java
</a> </div>
<div class="library-version">1.1.0-SNAPSHOT
<div class="library-version">1.0.1
</div>
</div>
<div class="filter-section" id="filter-section">
Expand Down
Loading
Loading