@InterfaceAudience.Public @InterfaceStability.Experimental public class EndpointHealth extends Object
Aggregates the health of one specific Endpoint
.
Constructor and Description |
---|
EndpointHealth(ServiceType type,
LifecycleState state,
SocketAddress localAddr,
SocketAddress remoteAddr,
long lastActivityUs,
String id) |
Modifier and Type | Method and Description |
---|---|
String |
id() |
long |
lastActivity() |
InetSocketAddress |
local() |
InetSocketAddress |
remote() |
LifecycleState |
state() |
Map<String,Object> |
toMap() |
String |
toString() |
ServiceType |
type() |
public EndpointHealth(ServiceType type, LifecycleState state, SocketAddress localAddr, SocketAddress remoteAddr, long lastActivityUs, String id)
public ServiceType type()
public LifecycleState state()
public InetSocketAddress local()
public InetSocketAddress remote()
public long lastActivity()
public String id()
Copyright © 2018 Couchbase, Inc.. All rights reserved.