Interface TraceEvent


  • public interface TraceEvent
    An event in a QueryTrace.
    • Method Detail

      • getActivity

        @Nullable
        String getActivity()
        Which activity this event corresponds to.
      • getTimestamp

        long getTimestamp()
        The server-side timestamp of the event.
      • getSourceAddress

        @Nullable
        default InetSocketAddress getSourceAddress()
        The IP and Port of the host having generated this event. Prior to C* 4.0 the port will be set to zero.

        This method's default implementation returns getSource() with the port set to 0. The only reason it exists is to preserve binary compatibility. Internally, the driver overrides it to set the correct port.

        Since:
        4.6.0
      • getSourceElapsedMicros

        int getSourceElapsedMicros()
        The number of microseconds elapsed on the source when this event occurred since the moment when the source started handling the query.
      • getThreadName

        @Nullable
        String getThreadName()
        The name of the thread on which this event occurred.