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 InitialRemoteIteratorData<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 AbstractRemoteIteratorData.closed closed 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 explicitly.
        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, that is, no extension will be applied.
        Returns:
        The designated remote iterator data.