com.lmax.api.orderbook
Interface SearchInstrumentCallback


public interface SearchInstrumentCallback

Called back when a search instrument request succeeds or fails.


Method Summary
 void onFailure(FailureResponse failureResponse)
          Called when failure occurs.
 void onSuccess(java.util.List<Instrument> instruments, boolean hasMoreResults)
          Indicates the instrument search was successfully requested.
 

Method Detail

onSuccess

void onSuccess(java.util.List<Instrument> instruments,
               boolean hasMoreResults)
Indicates the instrument search was successfully requested.

Parameters:
instruments - a page of instruments returned by search.
hasMoreResults - indicates the presence of more pages result.

onFailure

void onFailure(FailureResponse failureResponse)
Called when failure occurs.

Parameters:
failureResponse - Contains information about the failure.