Class ClusterRequest

All Implemented Interfaces:
Messageable, Request
Direct Known Subclasses:

public class ClusterRequest extends Object implements Request
A request in the cluster.

Size does not apply to these requests.

  • Constructor Details

    • ClusterRequest

      public ClusterRequest(io.vertx.core.eventbus.Message message)
      Creates a cluster request from an eventbus message.
      message - the eventbus message
  • Method Details

    • write

      public void write(Object msg)
      Description copied from interface: Messageable
      Writes an object to the connection that backs the current request.
      Specified by:
      write in interface Messageable
      msg - the object to be written.
    • connection

      public Connection connection()
      Specified by:
      connection in interface Request
      the underlying connection of the request, may be called multiple times per request returning the same connection object.
    • data

      public io.vertx.core.json.JsonObject data()
      Description copied from interface: Request
      Get the raw data of the request as a json object
      Specified by:
      data in interface Request
      the raw data of the request
    • buffer

      public io.vertx.core.buffer.Buffer buffer()
      the buffer attached to the requests when sending files.
    • timeout

      public int timeout()
      Description copied from interface: Request
      Get the request timeout which indicates how long the sender is waiting until the request is considered to have timed out.

      defaults to #ListenerSettings.DEFAULT_TIMEOUT

      Specified by:
      timeout in interface Request
      milliseconds specifying the timeout of the request
    • size

      public int size()
      Specified by:
      size in interface Request
      the size of the request in bytes.
    • maxSize

      public int maxSize()
      Description copied from interface: Request
      Specified by:
      maxSize in interface Request
      the maximum number of bytes allowed in a single request.