Class RPCResponse.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class RPCResponse.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for RPCResponse instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
sender
public String
correlationKey
public Instant
sendTime
public ResponseStatus
responseStatus
public ByteBuffer
payload
-
Method Summary
Modifier and Type Method Description String
getSender()
Gets the value of the 'sender' field. RPCResponse.Builder
setSender(String value)
Sets the value of the 'sender' field. String
getCorrelationKey()
Gets the value of the 'correlationKey' field. RPCResponse.Builder
setCorrelationKey(String value)
Sets the value of the 'correlationKey' field. Instant
getSendTime()
Gets the value of the 'sendTime' field. RPCResponse.Builder
setSendTime(Instant value)
Sets the value of the 'sendTime' field. ResponseStatus
getResponseStatus()
Gets the value of the 'responseStatus' field. RPCResponse.Builder
setResponseStatus(ResponseStatus value)
Sets the value of the 'responseStatus' field. ByteBuffer
getPayload()
Gets the value of the 'payload' field. RPCResponse.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. boolean
hasSender()
Checks whether the 'sender' field has been set. RPCResponse.Builder
clearSender()
Clears the value of the 'sender' field. boolean
hasCorrelationKey()
Checks whether the 'correlationKey' field has been set. RPCResponse.Builder
clearCorrelationKey()
Clears the value of the 'correlationKey' field. boolean
hasSendTime()
Checks whether the 'sendTime' field has been set. RPCResponse.Builder
clearSendTime()
Clears the value of the 'sendTime' field. boolean
hasResponseStatus()
Checks whether the 'responseStatus' field has been set. RPCResponse.Builder
clearResponseStatus()
Clears the value of the 'responseStatus' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. RPCResponse.Builder
clearPayload()
Clears the value of the 'payload' field. RPCResponse
build()
-
-
Method Detail
-
setSender
RPCResponse.Builder setSender(String value)
Sets the value of the 'sender' field. The sender identifier
- Parameters:
value
- The value of 'sender'.
-
getCorrelationKey
String getCorrelationKey()
Gets the value of the 'correlationKey' field. Unique identifier
-
setCorrelationKey
RPCResponse.Builder setCorrelationKey(String value)
Sets the value of the 'correlationKey' field. Unique identifier
- Parameters:
value
- The value of 'correlationKey'.
-
getSendTime
Instant getSendTime()
Gets the value of the 'sendTime' field. Time ([Instant]) in milliseconds of the response
-
setSendTime
RPCResponse.Builder setSendTime(Instant value)
Sets the value of the 'sendTime' field. Time ([Instant]) in milliseconds of the response
- Parameters:
value
- The value of 'sendTime'.
-
getResponseStatus
ResponseStatus getResponseStatus()
Gets the value of the 'responseStatus' field. Status enum on the response to help with response handling
-
setResponseStatus
RPCResponse.Builder setResponseStatus(ResponseStatus value)
Sets the value of the 'responseStatus' field. Status enum on the response to help with response handling
- Parameters:
value
- The value of 'responseStatus'.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field.
-
setPayload
RPCResponse.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field.
- Parameters:
value
- The value of 'payload'.
-
hasSender
boolean hasSender()
Checks whether the 'sender' field has been set. The sender identifier
-
clearSender
RPCResponse.Builder clearSender()
Clears the value of the 'sender' field. The sender identifier
-
hasCorrelationKey
boolean hasCorrelationKey()
Checks whether the 'correlationKey' field has been set. Unique identifier
-
clearCorrelationKey
RPCResponse.Builder clearCorrelationKey()
Clears the value of the 'correlationKey' field. Unique identifier
-
hasSendTime
boolean hasSendTime()
Checks whether the 'sendTime' field has been set. Time ([Instant]) in milliseconds of the response
-
clearSendTime
RPCResponse.Builder clearSendTime()
Clears the value of the 'sendTime' field. Time ([Instant]) in milliseconds of the response
-
hasResponseStatus
boolean hasResponseStatus()
Checks whether the 'responseStatus' field has been set. Status enum on the response to help with response handling
-
clearResponseStatus
RPCResponse.Builder clearResponseStatus()
Clears the value of the 'responseStatus' field. Status enum on the response to help with response handling
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set.
-
clearPayload
RPCResponse.Builder clearPayload()
Clears the value of the 'payload' field.
-
build
RPCResponse build()
-
-
-
-