Class Destination
- java.lang.Object
-
- co.elastic.apm.agent.impl.context.Destination
-
- All Implemented Interfaces:
Recyclable
public class Destination extends java.lang.Object implements Recyclable
Context information about a destination of outgoing calls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDestination.ServiceContext information required for service maps.
-
Constructor Summary
Constructors Constructor Description Destination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuildergetAddress()intgetPort()Destination.ServicegetService()booleanhasContent()voidresetState()resets pooled object state so it can be reusedDestinationwithAddress(java.lang.CharSequence address)DestinationwithAddressPort(java.lang.String addressPort)DestinationwithInetAddress(java.net.InetAddress inetAddress)DestinationwithInetSocketAddress(java.net.InetSocketAddress inetSocketAddress)DestinationwithPort(int port)DestinationwithSocketAddress(java.net.SocketAddress socketAddress)DestinationwithUserAddress(java.lang.CharSequence address)DestinationwithUserPort(int port)
-
-
-
Method Detail
-
withAddress
public Destination withAddress(@Nullable java.lang.CharSequence address)
-
withUserAddress
public Destination withUserAddress(@Nullable java.lang.CharSequence address)
-
getAddress
public java.lang.StringBuilder getAddress()
-
withPort
public Destination withPort(int port)
-
withUserPort
public Destination withUserPort(int port)
-
getPort
public int getPort()
-
withAddressPort
public Destination withAddressPort(@Nullable java.lang.String addressPort)
- Parameters:
addressPort- host address and port in the following format 'host:3128'- Returns:
- destination with updated address and port
-
getService
public Destination.Service getService()
-
hasContent
public boolean hasContent()
-
resetState
public void resetState()
Description copied from interface:Recyclableresets pooled object state so it can be reused- Specified by:
resetStatein interfaceRecyclable
-
withSocketAddress
public Destination withSocketAddress(java.net.SocketAddress socketAddress)
-
withInetSocketAddress
public Destination withInetSocketAddress(java.net.InetSocketAddress inetSocketAddress)
-
withInetAddress
public Destination withInetAddress(java.net.InetAddress inetAddress)
-
-