public class RpcStatsContext extends Object
Constructor and Description |
---|
RpcStatsContext() |
RpcStatsContext(int requestId) |
Modifier and Type | Method and Description |
---|---|
JavaScriptObject |
bytesStat(String method,
int bytes,
String eventType) |
int |
getRequestId() |
boolean |
isStatsAvailable()
Indicates if RPC statistics should be gathered.
|
boolean |
stats(JavaScriptObject data)
Always use this as
isStatsAvailable() &&
stats(JavaScriptObject) . |
JavaScriptObject |
timeStat(String method,
Object result,
String eventType) |
JavaScriptObject |
timeStat(String method,
String eventType) |
public RpcStatsContext()
public RpcStatsContext(int requestId)
public JavaScriptObject bytesStat(String method, int bytes, String eventType)
public int getRequestId()
public boolean isStatsAvailable()
public boolean stats(JavaScriptObject data)
isStatsAvailable()
&&
stats(JavaScriptObject)
.public JavaScriptObject timeStat(String method, String eventType)
public JavaScriptObject timeStat(String method, Object result, String eventType)
method
- result
- eventType
- Copyright © 2016. All rights reserved.