Class UDPEmitter

    • Constructor Detail

      • UDPEmitter

        public UDPEmitter()
                   throws java.net.SocketException
        Deprecated.
        Constructs a UDPEmitter. Sets the daemon address to the value of the AWS_XRAY_DAEMON_ADDRESS environment variable or com.amazonaws.xray.emitters.daemonAddress system property, if either are set to a non-empty value. Otherwise, points to InetAddress.getLoopbackAddress() at port 2000.
        Throws:
        java.net.SocketException - if an error occurs while instantiating a DatagramSocket.
      • UDPEmitter

        public UDPEmitter​(DaemonConfiguration config)
                   throws java.net.SocketException
        Deprecated.
        Constructs a UDPEmitter. This overload allows you to specify the configuration.
        Parameters:
        config - The DaemonConfiguration for the Emitter.
        Throws:
        java.net.SocketException - if an error occurs while instantiating a DatagramSocket.
    • Method Detail

      • getUDPAddress

        public java.lang.String getUDPAddress()
        Deprecated.
      • sendSegment

        public boolean sendSegment​(Segment segment)
        Deprecated.
        Sends a segment to the X-Ray daemon.
        Specified by:
        sendSegment in class Emitter
        Parameters:
        segment - the segment to send
        Returns:
        true if the send operation was successful
        See Also:
        Emitter.sendSegment(Segment)