Annotation Interface RequestReply


@Retention(RUNTIME) @Target(TYPE) public @interface RequestReply
Enables synchronous request-reply messaging pattern. Sender blocks until reply is received or timeout occurs.

Example:

 @RequestReply(
     endpoint = "http://localhost:8080",
     timeout = 5000
 )
 public class ServiceAgent extends Agent {
     // Handles synchronous requests with 5s timeout
 }
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to start server automatically.
    Remote endpoint URL.
    long
    Request timeout in milliseconds.
    Transport mode.
  • Element Details

    • endpoint

      String endpoint
      Remote endpoint URL. If empty, uses internal mode.
      Default:
      ""
    • transport

      TransportMode transport
      Transport mode.
      Default:
      AUTO
    • timeout

      long timeout
      Request timeout in milliseconds.
      Default:
      30000L
    • autoStart

      boolean autoStart
      Whether to start server automatically.
      Default:
      true