public class DefaultTcpSocketMetric extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
connected |
protected long |
connectedTime |
protected DefaultEndpointMetric |
endpointMetric |
| Constructor and Description |
|---|
DefaultTcpSocketMetric(DefaultEndpointMetric endpointMetric) |
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectedTime() |
DefaultEndpointMetric |
getEndpointMetric() |
boolean |
isConnected() |
void |
onConnect() |
void |
onDisconnect() |
protected DefaultEndpointMetric endpointMetric
protected boolean connected
protected long connectedTime
public DefaultTcpSocketMetric(DefaultEndpointMetric endpointMetric)
public DefaultEndpointMetric getEndpointMetric()
public boolean isConnected()
public void onConnect()
public void onDisconnect()
public long getConnectedTime()
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.