Class UdpRequest
java.lang.Object
com.codingchili.core.listener.transport.UdpRequest
- All Implemented Interfaces:
Messageable
,Request
UDP request object.
-
Field Summary
Fields inherited from interface com.codingchili.core.listener.Request
TARGET_UNDEFINED
-
Constructor Summary
ConstructorDescriptionUdpRequest(CoreContext context, ListenerSettings settings, io.vertx.core.datagram.DatagramPacket packet)
-
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.json.JsonObject
data()
Get the raw data of the request as a json objectint
maxSize()
defaults to #ListenerSettings.DEFAULT_MAX_REQUEST_BYTES
int
size()
int
timeout()
Get the request timeout which indicates how long the sender is waiting until the request is considered to have timed out.void
Writes an object to the connection that backs the current request.
-
Constructor Details
-
UdpRequest
public UdpRequest(CoreContext context, ListenerSettings settings, io.vertx.core.datagram.DatagramPacket packet)
-
-
Method Details
-
write
Description copied from interface:Messageable
Writes an object to the connection that backs the current request.- Specified by:
write
in interfaceMessageable
- Parameters:
message
- the object to be written.
-
connection
- Specified by:
connection
in interfaceRequest
- Returns:
- 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 -
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
-
maxSize
public int maxSize()Description copied from interface:Request
defaults to #ListenerSettings.DEFAULT_MAX_REQUEST_BYTES
-
size
public int size()
-