Package 

Class Sample


  • 
    public final class Sample
    
                        

    Determines whether a session should be recorded based on sampleRate.

    Uses xxHash32 for uniform distribution across all sample rates. TODO: Replace with com.amplitude.core.utilities.Sample.isInSample once it's public in the core SDK.

    • Constructor Summary

      Constructors 
      Constructor Description
      Sample(Number sampleRate)
    • Method Summary

      Modifier and Type Method Description
      final Boolean isSessionInSample(Long sessionId)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait