TRequestMessage
- type of the request messagepublic final class TypedRequestReceivedEventArgs<TRequestMessage>
extends java.lang.Object
Constructor and Description |
---|
TypedRequestReceivedEventArgs(java.lang.String responseReceiverId,
java.lang.String senderAddress,
java.lang.Exception error)
Constructs the message from the exception.
|
TypedRequestReceivedEventArgs(java.lang.String responseReceiverId,
java.lang.String senderAddress,
TRequestMessage requestMessage)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getReceivingError()
Returns the error detected during receiving of the message.
|
TRequestMessage |
getRequestMessage()
Returns the received message.
|
java.lang.String |
getResponseReceiverId()
Returns the client identifier where the response can be sent.
|
java.lang.String |
getSenderAddress()
Returns the address where the sender of the request message is located.
|
public TypedRequestReceivedEventArgs(java.lang.String responseReceiverId, java.lang.String senderAddress, TRequestMessage requestMessage)
responseReceiverId
- identifies the client where the response can be sentsenderAddress
- address of the message sender. It is null if not applicable for the messaging system.requestMessage
- messagepublic TypedRequestReceivedEventArgs(java.lang.String responseReceiverId, java.lang.String senderAddress, java.lang.Exception error)
responseReceiverId
- identifies the client where the response can be sentsenderAddress
- address of the message sender. It is null if not applicable for the messaging system.error
- error detected during receiving the messagepublic TRequestMessage getRequestMessage()
public java.lang.String getResponseReceiverId()
public java.lang.String getSenderAddress()
public java.lang.Exception getReceivingError()