eneter.messaging.endpoints.typedmessages
Class TypedResponseReceivedEventArgs<TResponseMessage>

java.lang.Object
  extended by eneter.messaging.endpoints.typedmessages.TypedResponseReceivedEventArgs<TResponseMessage>
Type Parameters:
TResponseMessage - message type

public final class TypedResponseReceivedEventArgs<TResponseMessage>
extends java.lang.Object

Event argument used when a typed response message is received.


Constructor Summary
TypedResponseReceivedEventArgs(java.lang.Exception error)
          Constructs the event from the exception detected during receiving the response message.
TypedResponseReceivedEventArgs(TResponseMessage responseMessage)
          Constructs the event.
 
Method Summary
 java.lang.Exception getReceivingError()
          Returns an exception detected during receiving the response message.
 TResponseMessage getResponseMessage()
          Returns the message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedResponseReceivedEventArgs

public TypedResponseReceivedEventArgs(TResponseMessage responseMessage)
Constructs the event.

Parameters:
responseMessage - response message

TypedResponseReceivedEventArgs

public TypedResponseReceivedEventArgs(java.lang.Exception error)
Constructs the event from the exception detected during receiving the response message.

Parameters:
error -
Method Detail

getResponseMessage

public TResponseMessage getResponseMessage()
Returns the message.

Returns:

getReceivingError

public java.lang.Exception getReceivingError()
Returns an exception detected during receiving the response message.

Returns: