public class BreinifyExecutor
extends java.lang.Object
| Constructor and Description |
|---|
BreinifyExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
activity()
Sends an activity to the engine utilizing the API.
|
void |
activity(BreinUser user,
java.lang.String activityType,
java.lang.String category,
java.lang.String description)
Sends an activity to the engine utilizing the API.
|
void |
activity(BreinUser user,
java.lang.String activityType,
java.lang.String category,
java.lang.String description,
java.util.function.Function<java.lang.String,java.lang.Void> errorCallback)
Sends an activity to the engine utilizing the API.
|
void |
applyActivityConfiguration()
This is necessary because the configuration from
class BreinifyExecutor needs to be transferred to
class Breinify in order to invoke the activity and
lookup calls within class Breinify.
|
void |
applyRecommendationConfiguration()
This is necessary because the configuration from
class BreinifyExecutor needs to be transferred to
class Breinify in order to invoke the recommendation
calls within class Breinify.
|
void |
applyTemporalDataConfiguration()
This is necessary because the configuration from
class BreinifyExecutor needs to be transferred to
class Breinify in order to invoke the temporaldata
calls within class Breinify.
|
BreinActivity |
getBreinActivity()
Retrieves the instance of the brein activity
|
BreinLookup |
getBreinLookup()
Retrieves the instance of the brein lookup
|
BreinConfig |
getConfig()
gets the config
|
BreinResult |
lookup(BreinUser user,
BreinDimension dimension)
Retrieves a lookup result from the engine.
|
BreinResult |
recommendation(BreinUser user,
int numberOfRecommendations)
Invokes the recommendation request to the engine utilizing the API.
|
void |
setConfig(BreinConfig breinConfig)
sets the configuration
|
void |
shutdown()
Shutdown Breinify services
|
BreinResult |
temporalData(BreinUser breinUser)
Sends a temporalData to the engine utilizing the API.
|
public BreinConfig getConfig()
public void setConfig(BreinConfig breinConfig)
breinConfig - config objectpublic BreinActivity getBreinActivity()
public BreinLookup getBreinLookup()
public void activity(BreinUser user, java.lang.String activityType, java.lang.String category, java.lang.String description, java.util.function.Function<java.lang.String,java.lang.Void> errorCallback)
This request is asynchronous.
user - a plain object specifying the user information the activity belongs toactivityType - the type of the activity collected, i.e., one of search, login, logout, addToCart,
removeFromCart, checkOut, selectProduct, or other. if not specified, the default other will
be usedcategory - the category of the platform/service/products, i.e., one of apparel, home, education, family,
food, health, job, services, or otherdescription - a string with further information about the activity performederrorCallback - a callback function that is invoked in case of an error (can be null)public void activity(BreinUser user, java.lang.String activityType, java.lang.String category, java.lang.String description)
This request is asynchronous.
user - a plain object specifying the user information the activity belongs toactivityType - the type of the activity collected, i.e., one of search, login, logout, addToCart,
removeFromCart, checkOut, selectProduct, or other. if not specified, the default other will
be usedcategory - the category of the platform/service/products, i.e., one of apparel, home, education, family,
food, health, job, services, or otherdescription - a string with further information about the activity performedpublic void applyActivityConfiguration()
public void applyTemporalDataConfiguration()
public void applyRecommendationConfiguration()
public void activity()
This request is asynchronous.
public BreinResult lookup(BreinUser user, BreinDimension dimension)
This request is synchronous.
user - a plain object specifying information about the user to retrieve data for.dimension - an object (with an array) containing the names of the dimensions to lookup.public BreinResult temporalData(BreinUser breinUser)
Furthermore it uses the internal instance of BreinTemporalData.
breinUser - a plain object specifying information about the user to retrieve data for.public BreinResult recommendation(BreinUser user, int numberOfRecommendations)
user - a plain object specifying the information about the user.numberOfRecommendations - number of recommendationspublic void shutdown()
Copyright © Breinify - All Rights Reserved.