Interface RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory
-
- All Superinterfaces:
LiveCommandResponseFactory
- Enclosing interface:
- RetrieveThingsLiveCommandAnswerBuilder
@ParametersAreNonnullByDefault public static interface RetrieveThingsLiveCommandAnswerBuilder.ResponseFactory extends LiveCommandResponseFactory
Factory forCommandResponses toRetrieveThingscommand.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.ditto.signals.commands.things.query.RetrieveThingsResponseretrieved(List<org.eclipse.ditto.model.things.Thing> things)Creates a success response containing the retrieved value for theRetrieveThingscommand.org.eclipse.ditto.signals.commands.things.query.RetrieveThingsResponseretrieved(List<org.eclipse.ditto.model.things.Thing> things, Predicate<org.eclipse.ditto.json.JsonField> predicate)Creates a success response containing the retrieved value for theRetrieveThingscommand.-
Methods inherited from interface org.eclipse.ditto.signals.commands.live.base.LiveCommandResponseFactory
errorResponse, errorResponse, errorResponse
-
-
-
-
Method Detail
-
retrieved
@Nonnull org.eclipse.ditto.signals.commands.things.query.RetrieveThingsResponse retrieved(List<org.eclipse.ditto.model.things.Thing> things, Predicate<org.eclipse.ditto.json.JsonField> predicate)
Creates a success response containing the retrieved value for theRetrieveThingscommand.- Parameters:
things- the value of the requested Things.predicate- a predicate determining which fields from the provided Things should be included in the response.- Returns:
- the response.
- Throws:
NullPointerException- if any argument isnull.
-
retrieved
@Nonnull org.eclipse.ditto.signals.commands.things.query.RetrieveThingsResponse retrieved(List<org.eclipse.ditto.model.things.Thing> things)
Creates a success response containing the retrieved value for theRetrieveThingscommand.- Parameters:
things- the value of the requested Things.- Returns:
- the response.
- Throws:
NullPointerException- ifthingsisnull.
-
-