com.lmax.api.reject
Class InstructionRejectedEvent

java.lang.Object
  extended by com.lmax.api.reject.InstructionRejectedEvent

public class InstructionRejectedEvent
extends java.lang.Object

Event received when a instruction is rejected asynchronously. E.g. INSUFFICIENT_LIQUIDITY


Constructor Summary
InstructionRejectedEvent(java.lang.String instructionId, long accountId, long instrumentId, java.lang.String reason)
          Contruct the event.
 
Method Summary
 long getAccountId()
          The accountId of the user that submitted the request.
 java.lang.String getInstructionId()
          The instructionId that this rejection was caused by.
 long getInstrumentId()
          The instrumentId that the instruction was placed on.
 java.lang.String getReason()
          The reason for the reject.
 java.lang.String toString()
          Convert this event to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstructionRejectedEvent

public InstructionRejectedEvent(java.lang.String instructionId,
                                long accountId,
                                long instrumentId,
                                java.lang.String reason)
Contruct the event.

Parameters:
instructionId - The instructionId that this rejection was caused by
accountId - The accountId of the user that submitted the request
instrumentId - The instrumentId that the instruction was placed on
reason - The reason for the reject
Method Detail

getInstructionId

public java.lang.String getInstructionId()
The instructionId that this rejection was caused by.

Returns:
The instructionId that this rejection was caused by

getAccountId

public long getAccountId()
The accountId of the user that submitted the request.

Returns:
The accountId of the user that submitted the request

getInstrumentId

public long getInstrumentId()
The instrumentId that the instruction was placed on.

Returns:
The instrumentId that the instruction was placed on

getReason

public java.lang.String getReason()
The reason for the reject.

Returns:
The reason for the reject, e.g. INSUFFICIENT_LIQUIDITY

toString

public java.lang.String toString()
Convert this event to a string.

Overrides:
toString in class java.lang.Object
Returns:
The string representation of this event.
See Also:
Object.toString()