public interface GenericOrderService<T extends Order>
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<OrderRequestResult> |
cancelOrder(T order)
Cancels the order.
|
java.lang.String |
getNextOrderId(Account account)
Generates next order intId for the given account.
|
java.util.concurrent.CompletableFuture<OrderRequestResult> |
modifyOrder(T order)
Modifies an existing order by overwriting with the given order.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
sendOrder(T order)
Sends the order.
|
void |
validateOrder(T order)
Validates the order.
|
void validateOrder(T order) throws OrderValidationException
sendOrder(T)
will invoke this method again.OrderValidationException
java.util.concurrent.CompletableFuture<java.lang.Void> sendOrder(T order)
java.util.concurrent.CompletableFuture<OrderRequestResult> cancelOrder(T order)
java.util.concurrent.CompletableFuture<OrderRequestResult> modifyOrder(T order)
java.lang.String getNextOrderId(Account account)