Package com.caplin.motif.fx.calendar
Interface SettlementDateRequestListener<S extends SettlementDateSubjectInfo>
-
public interface SettlementDateRequestListener<S extends SettlementDateSubjectInfo>
A SettlementDateRequestListener provides an interface to a calendar service which can provide settlement dates for the frontend. The implementation supports both synchronous and asynchronous callbacks.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
getSettlementDates(S subjectInfo, Callback<java.util.Set<java.lang.String>> callback)
Called when a request for the valid settlement or business dates for the specified currency pair, year and month.
-
-
-
Method Detail
-
getSettlementDates
void getSettlementDates(S subjectInfo, Callback<java.util.Set<java.lang.String>> callback)
Called when a request for the valid settlement or business dates for the specified currency pair, year and month. The provided callback object allows for asynchronous invocations to a calendar service.
Once a result is provided, it can be returned to the frontend via a call to
Callback.call(Object)
with the provided business days in the specified month.- Parameters:
subjectInfo
- The subject info describing the settlement date requestcallback
- The callback to call when a result has been provided, passing a set of valid settlement dates in the iso8601 date format, YYYYMMDD.
-
-