Class PingServiceHealth
- java.lang.Object
-
- com.couchbase.client.core.message.internal.PingServiceHealth
-
@Public @Experimental public class PingServiceHealth extends Object
Represents health for a specific service on ping.- Since:
- 1.5.4
- Author:
- Michael Nitschinger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PingServiceHealth.PingState
-
Constructor Summary
Constructors Constructor Description PingServiceHealth(ServiceType serviceType, PingServiceHealth.PingState pingState, String id, long latency, SocketAddress localAddr, SocketAddress remoteAddr, String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
long
latency()
InetSocketAddress
local()
InetSocketAddress
remote()
String
scope()
PingServiceHealth.PingState
state()
Map<String,Object>
toMap()
String
toString()
ServiceType
type()
-
-
-
Constructor Detail
-
PingServiceHealth
public PingServiceHealth(ServiceType serviceType, PingServiceHealth.PingState pingState, String id, long latency, SocketAddress localAddr, SocketAddress remoteAddr, String scope)
-
-
Method Detail
-
type
public ServiceType type()
-
scope
public String scope()
-
state
public PingServiceHealth.PingState state()
-
id
public String id()
-
latency
public long latency()
-
local
public InetSocketAddress local()
-
remote
public InetSocketAddress remote()
-
-