Open Kilda Java Documentation
org.openkilda.messaging.error.ErrorMessage Class Reference
Inheritance diagram for org.openkilda.messaging.error.ErrorMessage:
org.openkilda.messaging.Message org.openkilda.messaging.BaseMessage

Public Member Functions

 ErrorMessage (@JsonProperty(PAYLOAD) final ErrorData data, @JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty(DESTINATION) final Destination destination)
 
ErrorData getData ()
 
void setData (final ErrorData data)
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.Message
 Message (@JsonProperty(TIMESTAMP) final long timestamp, @JsonProperty(CORRELATION_ID) final String correlationId, @JsonProperty(DESTINATION) final Destination destination)
 
 Message (final long timestamp, final String correlationId)
 
String getCorrelationId ()
 
Destination getDestination ()
 
void setDestination (final Destination destination)
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.BaseMessage
 BaseMessage (@JsonProperty(TIMESTAMP) final long timestamp)
 
 BaseMessage ()
 
long getTimestamp ()
 
void setTimestamp (long timestamp)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.openkilda.messaging.BaseMessage
static final< T extends BaseMessage > T getMessage (String json, Class< T > type) throws java.io.IOException
 
static final< T extends BaseMessage > T tryGetMessage (String json, Class< T > type)
 
- Protected Attributes inherited from org.openkilda.messaging.Message
String correlationId
 
Destination destination
 
- Protected Attributes inherited from org.openkilda.messaging.BaseMessage
long timestamp = 0L
 

Detailed Description

Class represents error message.

Definition at line 43 of file ErrorMessage.java.

Constructor & Destructor Documentation

◆ ErrorMessage()

org.openkilda.messaging.error.ErrorMessage.ErrorMessage ( @JsonProperty(PAYLOAD) final ErrorData  data,
@JsonProperty(TIMESTAMP) final long  timestamp,
@JsonProperty(CORRELATION_ID) final String  correlationId,
@JsonProperty(DESTINATION) final Destination  destination 
)

Instance constructor.

Parameters
dataerror message payload
timestamptimestamp value
correlationIdmessage correlation id
destinationmessage destination

Definition at line 64 of file ErrorMessage.java.

Member Function Documentation

◆ getData()

ErrorData org.openkilda.messaging.error.ErrorMessage.getData ( )

Returns payload of the error message.

Returns
error message payload

Definition at line 77 of file ErrorMessage.java.

◆ setData()

void org.openkilda.messaging.error.ErrorMessage.setData ( final ErrorData  data)

Sets payload of the error message.

Parameters
dataerror message payload

Definition at line 86 of file ErrorMessage.java.

◆ toString()

String org.openkilda.messaging.error.ErrorMessage.toString ( )

Definition at line 94 of file ErrorMessage.java.


The documentation for this class was generated from the following file: