@Path(value="async/messaging/fireAndForget") @Produces(value="text/plain") @Consumes(value="text/plain") public class FireAndForgetChatResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
POST_NOTIFICATION_RESPONSE |
| Constructor and Description |
|---|
FireAndForgetChatResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
pickUpMessage(jakarta.ws.rs.container.AsyncResponse ar,
String messageId) |
String |
postMessage(String message) |
public static final String POST_NOTIFICATION_RESPONSE
@GET
public void pickUpMessage(@Suspended
jakarta.ws.rs.container.AsyncResponse ar,
@QueryParam(value="id")
String messageId)
throws InterruptedException
InterruptedException@POST public String postMessage(String message) throws InterruptedException
InterruptedExceptionCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.