T - the type of the event this handler supports.@FunctionalInterface public interface AppmarketEventHandler<T>
SubscriptionOrder &
SubscriptionCancel events.| Modifier and Type | Method and Description |
|---|---|
APIResult |
handle(T event)
For async events (everything but
SUBSCRIPTION_NOTICE events),
returning a null result will not resolve the event on the appmarket's side. |
APIResult handle(T event)
SUBSCRIPTION_NOTICE events),
returning a null result will not resolve the event on the appmarket's side.
You will have to manually resolve the event using AppmarketEventClient.resolve(java.lang.String, java.lang.String, com.appdirect.sdk.appmarket.events.APIResult, java.lang.String) at a later point in time.event - the event received from the appmarket. Act upon this!null if you the event is to be resolved later.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.