This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
exercise_013_Listen_and_Notify/src/main/java/com/lunatech/training/quarkus
exercise_014_Internal_Channels/src/main/java/com/lunatech/training/quarkus
exercise_015_Connecting_to_Kafka/src/main/java/com/lunatech/training/quarkus
exercise_016_Dead_Letter_Queue_and_Stream_filtering/src/main/java/com/lunatech/training/quarkus Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 7
7
import io .vertx .mutiny .pgclient .PgPool ;
8
8
import io .vertx .mutiny .sqlclient .SqlConnection ;
9
9
import io .vertx .pgclient .PgNotification ;
10
- import org .jboss .resteasy .reactive .RestSseElementType ;
10
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
11
11
12
12
import jakarta .inject .Inject ;
13
13
import jakarta .ws .rs .*;
@@ -22,7 +22,7 @@ public class ListenNotifyResource {
22
22
@ Path ("{channel}" )
23
23
@ GET
24
24
@ Produces (MediaType .SERVER_SENT_EVENTS )
25
- @ RestSseElementType (MediaType .APPLICATION_JSON )
25
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
26
26
public Multi <JsonObject > listen (@ PathParam ("channel" ) String channel ) {
27
27
return client
28
28
.getConnection ()
Original file line number Diff line number Diff line change 7
7
import io .vertx .mutiny .pgclient .PgPool ;
8
8
import io .vertx .mutiny .sqlclient .SqlConnection ;
9
9
import io .vertx .pgclient .PgNotification ;
10
- import org .jboss .resteasy .reactive .RestSseElementType ;
10
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
11
11
12
12
import jakarta .inject .Inject ;
13
13
import jakarta .ws .rs .*;
@@ -22,7 +22,7 @@ public class ListenNotifyResource {
22
22
@ Path ("{channel}" )
23
23
@ GET
24
24
@ Produces (MediaType .SERVER_SENT_EVENTS )
25
- @ RestSseElementType (MediaType .APPLICATION_JSON )
25
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
26
26
public Multi <JsonObject > listen (@ PathParam ("channel" ) String channel ) {
27
27
return client
28
28
.getConnection ()
Original file line number Diff line number Diff line change 2
2
3
3
import io .smallrye .mutiny .Multi ;
4
4
import org .eclipse .microprofile .reactive .messaging .Channel ;
5
- import org .jboss .resteasy .reactive .RestSseElementType ;
5
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
6
6
7
7
import jakarta .ws .rs .GET ;
8
8
import jakarta .ws .rs .Path ;
@@ -17,7 +17,7 @@ public class PriceUpdatesResource {
17
17
18
18
@ GET
19
19
@ Produces (MediaType .SERVER_SENT_EVENTS )
20
- @ RestSseElementType (MediaType .APPLICATION_JSON )
20
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
21
21
public Multi <PriceUpdate > prices () {
22
22
return priceUpdates ;
23
23
}
Original file line number Diff line number Diff line change 7
7
import io .vertx .mutiny .pgclient .PgPool ;
8
8
import io .vertx .mutiny .sqlclient .SqlConnection ;
9
9
import io .vertx .pgclient .PgNotification ;
10
- import org .jboss .resteasy .reactive .RestSseElementType ;
10
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
11
11
12
12
import jakarta .inject .Inject ;
13
13
import jakarta .ws .rs .*;
@@ -22,7 +22,7 @@ public class ListenNotifyResource {
22
22
@ Path ("{channel}" )
23
23
@ GET
24
24
@ Produces (MediaType .SERVER_SENT_EVENTS )
25
- @ RestSseElementType (MediaType .APPLICATION_JSON )
25
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
26
26
public Multi <JsonObject > listen (@ PathParam ("channel" ) String channel ) {
27
27
return client
28
28
.getConnection ()
Original file line number Diff line number Diff line change 2
2
3
3
import io .smallrye .mutiny .Multi ;
4
4
import org .eclipse .microprofile .reactive .messaging .Channel ;
5
- import org .jboss .resteasy .reactive .RestSseElementType ;
5
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
6
6
7
7
import jakarta .ws .rs .GET ;
8
8
import jakarta .ws .rs .Path ;
@@ -17,7 +17,7 @@ public class PriceUpdatesResource {
17
17
18
18
@ GET
19
19
@ Produces (MediaType .SERVER_SENT_EVENTS )
20
- @ RestSseElementType (MediaType .APPLICATION_JSON )
20
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
21
21
public Multi <PriceUpdate > prices () {
22
22
return priceUpdates ;
23
23
}
Original file line number Diff line number Diff line change 7
7
import io .vertx .mutiny .pgclient .PgPool ;
8
8
import io .vertx .mutiny .sqlclient .SqlConnection ;
9
9
import io .vertx .pgclient .PgNotification ;
10
- import org .jboss .resteasy .reactive .RestSseElementType ;
10
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
11
11
12
12
import jakarta .inject .Inject ;
13
13
import jakarta .ws .rs .*;
@@ -22,7 +22,7 @@ public class ListenNotifyResource {
22
22
@ Path ("{channel}" )
23
23
@ GET
24
24
@ Produces (MediaType .SERVER_SENT_EVENTS )
25
- @ RestSseElementType (MediaType .APPLICATION_JSON )
25
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
26
26
public Multi <JsonObject > listen (@ PathParam ("channel" ) String channel ) {
27
27
return client
28
28
.getConnection ()
Original file line number Diff line number Diff line change 2
2
3
3
import io .smallrye .mutiny .Multi ;
4
4
import org .eclipse .microprofile .reactive .messaging .Channel ;
5
- import org .jboss .resteasy .reactive .RestSseElementType ;
5
+ import org .jboss .resteasy .reactive .RestStreamElementType ;
6
6
7
7
import jakarta .ws .rs .GET ;
8
8
import jakarta .ws .rs .Path ;
@@ -18,14 +18,14 @@ public class PriceUpdatesResource {
18
18
19
19
@ GET
20
20
@ Produces (MediaType .SERVER_SENT_EVENTS )
21
- @ RestSseElementType (MediaType .APPLICATION_JSON )
21
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
22
22
public Multi <PriceUpdate > prices () {
23
23
return priceUpdates ;
24
24
}
25
25
26
26
@ GET
27
27
@ Produces (MediaType .SERVER_SENT_EVENTS )
28
- @ RestSseElementType (MediaType .APPLICATION_JSON )
28
+ @ RestStreamElementType (MediaType .APPLICATION_JSON )
29
29
@ Path ("{id}" )
30
30
public Multi <PriceUpdate > pricesForProduct (@ PathParam ("id" ) Long id ) {
31
31
return priceUpdates .filter (priceUpdate -> priceUpdate .productId .equals (id ));
You can’t perform that action at this time.
0 commit comments