Package 

Object GlobalRumMonitor


  • 
    public class GlobalRumMonitor
    
                        

    A global RumMonitor holder, ensuring that all RUM events are registered on the same instance.

    If the RUM feature is not enabled, a default no-op implementation is used.

    You can then retrieve the active RumMonitor using the get method.

    • Method Summary

      Modifier and Type Method Description
      final static Boolean isRegistered(SdkCore sdkCore) Identify whether a RumMonitor has previously been registered for the given SDK instance.
      final static Boolean isRegistered() Identify whether a RumMonitor has previously been registered for the given SDK instance.
      final static RumMonitor get(SdkCore sdkCore) Returns the constant RumMonitor instance.
      final static RumMonitor get() Returns the constant RumMonitor instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isRegistered

        @JvmOverloads() final static Boolean isRegistered(SdkCore sdkCore)

        Identify whether a RumMonitor has previously been registered for the given SDK instance.

        This check is useful in scenarios where more than one component may be responsible for registering a monitor.

        Parameters:
        sdkCore - the SdkCore instance to check against.
      • isRegistered

        @JvmOverloads() final static Boolean isRegistered()

        Identify whether a RumMonitor has previously been registered for the given SDK instance.

        This check is useful in scenarios where more than one component may be responsible for registering a monitor.

      • get

        @JvmOverloads() final static RumMonitor get(SdkCore sdkCore)

        Returns the constant RumMonitor instance.

        Until a RUM feature is enabled, a no-op implementation is returned.