Class ServerStreamStringIteratorRest
java.lang.Object
de.aristaflow.ilm.ws.rest.base.service.AbstractSubResource<ServerStreamStringWebService>
de.aristaflow.ilm.ws.rest.model.common.ServerStreamStringIteratorRest
@Produces("application/json")
@Consumes("application/json")
public class ServerStreamStringIteratorRest
extends AbstractSubResource<ServerStreamStringWebService>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServerStreamStringIteratorRest(ServerStreamStringWebService service, de.aristaflow.adept2.base.communication.rest.RequestHandler reqHandler, de.aristaflow.adept2.base.communication.rest.ResponseHandler respHandler, de.aristaflow.adept2.base.communication.rest.ExceptionHandler excpHandler, de.aristaflow.adept2.base.communication.rest.ServiceResourceConfig srConf, Supplier<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, UnaryOperator<Exception> headerDataExcpAdapter) -
Method Summary
Modifier and TypeMethodDescriptionvoid@Valid StringRemoteIteratorDatainitIteratorAndRespStatus(InitialStringRemoteIteratorData isrid, Long aliveTime) Initialises the string remote iterator of the designated string remote iterator data by setting the designated explicit alive time if required and the response status toHttpURLConnection.HTTP_CREATED.Methods inherited from class de.aristaflow.ilm.ws.rest.base.service.AbstractSubResource
adaptHeaderData, ensureReqMaxVersion, ensureReqMinVersion, getExceptionHandler, getLogger, getObjectMapper, getRequestHandler, getResponseHandler, getServiceResourceConfig, getWebService
-
Constructor Details
-
ServerStreamStringIteratorRest
public ServerStreamStringIteratorRest(ServerStreamStringWebService service, de.aristaflow.adept2.base.communication.rest.RequestHandler reqHandler, de.aristaflow.adept2.base.communication.rest.ResponseHandler respHandler, de.aristaflow.adept2.base.communication.rest.ExceptionHandler excpHandler, de.aristaflow.adept2.base.communication.rest.ServiceResourceConfig srConf, Supplier<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, UnaryOperator<Exception> headerDataExcpAdapter)
-
-
Method Details
-
initIteratorAndRespStatus
public InitialStringRemoteIteratorData initIteratorAndRespStatus(InitialStringRemoteIteratorData isrid, Long aliveTime) Initialises the string remote iterator of the designated string remote iterator data by setting the designated explicit alive time if required and the response status toHttpURLConnection.HTTP_CREATED. Both only applies in case the string remote iterator data is notnull, that is, there is no data, and the remote iterator has not been AbstractRemoteIteratorData.closed closed implicitly, e. g. after all data has been transfered.- Parameters:
isrid- The string remote iterator data for which to initially set an explicit alive time. If this isnull, no alive time will be set explicitly.aliveTime- The alive time which to explicitly set for the designated string remote iterator data. If this isnull, the implicit alive time will be used, that is, no extension will be applied.- Returns:
- The designated string remote iterator data.
-
getNext
@GET @Path("/{iteratorId}/next") @Valid public @Valid StringRemoteIteratorData getNext(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId, @Positive @QueryParam("count") @Positive Integer count) -
keepAlive
-
close
@DELETE @Path("/{iteratorId}") public void close(@NotNull @PathParam("iteratorId") @NotNull UUID iteratorId) - See Also:
-