Class EndpointHealth
- java.lang.Object
-
- com.couchbase.client.core.message.internal.EndpointHealth
-
@Public @Experimental public class EndpointHealth extends Object
Aggregates the health of one specificEndpoint
.- Since:
- 1.5.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description EndpointHealth(ServiceType type, LifecycleState state, SocketAddress localAddr, SocketAddress remoteAddr, long lastActivityUs, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
long
lastActivity()
InetSocketAddress
local()
InetSocketAddress
remote()
LifecycleState
state()
Map<String,Object>
toMap()
String
toString()
ServiceType
type()
-
-
-
Constructor Detail
-
EndpointHealth
public EndpointHealth(ServiceType type, LifecycleState state, SocketAddress localAddr, SocketAddress remoteAddr, long lastActivityUs, String id)
-
-
Method Detail
-
type
public ServiceType type()
-
state
public LifecycleState state()
-
local
public InetSocketAddress local()
-
remote
public InetSocketAddress remote()
-
lastActivity
public long lastActivity()
-
id
public String id()
-
-