Class ThreadInfoSamplesRequest

    • Constructor Detail

      • ThreadInfoSamplesRequest

        public ThreadInfoSamplesRequest​(int requestId,
                                        @Nonnegative
                                        int numSamples,
                                        Duration delayBetweenSamples,
                                        @Nonnegative
                                        int maxStackTraceDepth)
        Parameters:
        requestId - ID of the sampling request.
        numSamples - The number of samples.
        delayBetweenSamples - The time to wait between taking samples.
        maxStackTraceDepth - The maximum depth of the returned stack traces.
    • Method Detail

      • getRequestId

        public int getRequestId()
        Returns the ID of the sampling request.
        Returns:
        ID of the request.
      • getNumSamples

        public int getNumSamples()
        Returns the number of samples that are requested to be collected.
        Returns:
        the number of requested samples.
      • getDelayBetweenSamples

        public Duration getDelayBetweenSamples()
        Returns the configured delay between the individual samples.
        Returns:
        the delay between the individual samples.
      • getMaxStackTraceDepth

        public int getMaxStackTraceDepth()
        Returns the configured maximum depth of the collected stack traces.
        Returns:
        the maximum depth of the collected stack traces.