Package io.nitric.faas
Class TopicResponseContext
- java.lang.Object
-
- io.nitric.faas.AbstractResponseContext
-
- io.nitric.faas.TopicResponseContext
-
public final class TopicResponseContext extends AbstractResponseContext
Provides a Topic response context class which can specify whether the event was successfully processed.
- See Also:
TopicTriggerContext
-
-
Constructor Summary
Constructors Constructor Description TopicResponseContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSuccess()
TopicResponseContext
setSuccess(boolean success)
String
toString()
-
Methods inherited from class io.nitric.faas.AbstractResponseContext
asHttp, asTopic, isHttp, isTopic
-
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
- Returns:
- The success status of the event processing
-
setSuccess
public TopicResponseContext setSuccess(boolean success)
- Parameters:
success
- Set the status for processing this topic trigger, false will cause the event to be re-queued
-
-