Package io.inugami.api.providers.task
Class ProviderFutureResult
- java.lang.Object
-
- io.inugami.api.providers.task.ProviderFutureResult
-
- All Implemented Interfaces:
ClonableObject<JsonObject>,JsonObject,JsonObjectToJson,Serializable
- Direct Known Subclasses:
EventCompositeResult
public class ProviderFutureResult extends Object implements JsonObject
ProviderFutureResultModel- Since:
- 9 janv. 2017
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_FIELD
-
Constructor Summary
Constructors Constructor Description ProviderFutureResult(String message, Exception exception, JsonObject data, GenericEvent event, String channel, String scheduler, List<AlertingResult> alerts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectcloneObj()StringconvertToJson()List<AlertingResult>getAlerts()StringgetChannel()<T extends JsonObject>
Optional<T>getData()GenericEventgetEvent()Optional<Exception>getException()Optional<String>getMessage()StringgetScheduler()protected StringinitFieldData()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.inugami.api.models.data.basic.JsonObject
convertToObject
-
-
-
-
Field Detail
-
DATA_FIELD
public static final String DATA_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProviderFutureResult
public ProviderFutureResult(String message, Exception exception, JsonObject data, GenericEvent event, String channel, String scheduler, List<AlertingResult> alerts)
-
-
Method Detail
-
initFieldData
protected String initFieldData()
-
cloneObj
public JsonObject cloneObj()
- Specified by:
cloneObjin interfaceClonableObject<JsonObject>- Specified by:
cloneObjin interfaceJsonObject
-
convertToJson
public String convertToJson()
- Specified by:
convertToJsonin interfaceJsonObjectToJson
-
getData
public <T extends JsonObject> Optional<T> getData()
-
getEvent
public GenericEvent getEvent()
-
getChannel
public String getChannel()
-
getScheduler
public String getScheduler()
-
getAlerts
public List<AlertingResult> getAlerts()
-
-