-
- All Known Implementing Classes:
SourceResponse.SourceResponseBuilder
public interface SourceResponse
Class to hold the response from a source.The response consists of a status.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SourceResponse.SourceResponseBuilder
static class
SourceResponse.Status
Response status returned by the source
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SourceResponse.SourceResponseBuilder
done()
Source is now out of itemsstatic SourceResponse.SourceResponseBuilder
empty()
The Source is currently emptySourceResponse.Status
getStatus()
Return the status associated with this responsestatic SourceResponse.SourceResponseBuilder
ok()
Create source read items normallystatic SourceResponse.SourceResponseBuilder
sourceError()
There was an error reading from the Source
-
-
-
Method Detail
-
ok
static SourceResponse.SourceResponseBuilder ok()
Create source read items normally
-
done
static SourceResponse.SourceResponseBuilder done()
Source is now out of items
-
sourceError
static SourceResponse.SourceResponseBuilder sourceError()
There was an error reading from the Source
-
empty
static SourceResponse.SourceResponseBuilder empty()
The Source is currently empty
-
getStatus
SourceResponse.Status getStatus()
Return the status associated with this response
-
-