Class AsmProfileDataServiceClientAdapter

  • All Implemented Interfaces:
    AsmProfileDataServiceClient

    public class AsmProfileDataServiceClientAdapter
    extends java.lang.Object
    implements AsmProfileDataServiceClient
    Adapter around the Charon client to retrieve profile in a blocking way without blocking every Charon client.
    • Constructor Detail

      • AsmProfileDataServiceClientAdapter

        public AsmProfileDataServiceClientAdapter()
    • Method Detail

      • getProfile

        public Profile getProfile​(java.lang.String id,
                                  java.lang.String fields)
        Description copied from interface: AsmProfileDataServiceClient
        Read profile data from yaas profile service.
        Specified by:
        getProfile in interface AsmProfileDataServiceClient
        Parameters:
        id - Profile identifier
        fields - List of fields which should be read from profile service separated by comma.
        Example : insights.affinities.products,insights.affinities.categories
        Returns:
        Profile data
      • getProfileAsync

        public rx.Observable<Profile> getProfileAsync​(java.lang.String id,
                                                      java.lang.String fields)
        Description copied from interface: AsmProfileDataServiceClient
        Read profile data from yaas profile service. Method runs asynchronously.
        Specified by:
        getProfileAsync in interface AsmProfileDataServiceClient
        Parameters:
        id - Profile identifier
        fields - List of fields which should be read from profile service separated by comma.
        Example : insights.affinities.products,insights.affinities.categories
        Returns:
        Profile data
      • setApiRegistryClientService

        public void setApiRegistryClientService​(ApiRegistryClientService apiRegistryClientService)