Class CorrelationIdUtils


  • public class CorrelationIdUtils
    extends Object
    • Constructor Detail

      • CorrelationIdUtils

        public CorrelationIdUtils()
    • Method Detail

      • pushIndexToCorrelationId

        public static void pushIndexToCorrelationId​(WalkRequest walkRequest,
                                                    int idx)
        Prepends the index to the correlation id on the given request.
      • popIndexFromCollerationId

        public static void popIndexFromCollerationId​(WalkResponse walkResponse,
                                                     Map<Integer,​List<WalkResponse>> responsesByIndex)
        Retrieves the most recent (first one in the string) index from the correlation id on the given response, and adds the (modified) response to the map at that index. The responses in the map contain the same results, but their correlation ids are modified to remove index at which they were mapped.