Class RemoteIteratorRest<WI,​NI extends RemoteIteratorData<WI>>

    • Constructor Detail

      • RemoteIteratorRest

        protected RemoteIteratorRest​(AddDataTransformatorRemoteIteratorWebService<?,​WI,​?,​?,​NI> 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 Detail

      • initIteratorAndRespStatus

        public <RID extends RemoteIteratorData<WI>> RID initIteratorAndRespStatus​(RID rid,
                                                                                  Long aliveTime)
        Initialises the remote iterator of the designated remote iterator data by setting the designated explicit alive time if required and the response status to HttpURLConnection.HTTP_CREATED. Both only applies in case the remote iterator data is not null, that is, there is no data, and the remote iterator has not been RemoteIteratorData.dropped dropped implicitly, e. g. after all data has been transfered.
        Parameters:
        rid - The remote iterator data for which to initially set an explicit alive time. If this is null, no alive time will be set.
        aliveTime - The alive time which to explicitly set for the designated remote iterator data. If this is null, the implicit alive time will be used (and automatically extended).
        Returns:
        The designated remote iterator data.