public class IMStats
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
IMStats.IMType |
static class |
IMStats.StatsItem |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
long |
getInitTimestamp() |
static IMStats |
getInstance() |
long |
getJoinSuccessTimeTaken(IMStats.IMType type,
java.lang.String chatroomId) |
long |
getJoinTimestamp(IMStats.IMType type,
java.lang.String chatroomId) |
int |
getSendCount(IMStats.IMType type,
java.lang.String chatroomId) |
int |
getSendResultCount(IMStats.IMType type,
java.lang.String chatroomId,
boolean succ) |
boolean |
isConnected(IMStats.IMType type,
java.lang.String chatroomId) |
boolean |
isConnectedAtEntrance(IMStats.IMType type,
java.lang.String chatroomId) |
boolean |
isJoined(IMStats.IMType type,
java.lang.String chatroomId) |
void |
reportConnect(IMStats.IMType type,
java.lang.String chatroomId,
boolean connected) |
void |
reportConnectionStatusAtEntrance(IMStats.IMType type,
java.lang.String chatroomId,
boolean connected) |
void |
reportInit() |
void |
reportJoin(IMStats.IMType type,
java.lang.String chatroomId,
boolean joined,
long joinStartTimestamp) |
void |
reportSend(IMStats.IMType type,
java.lang.String chatroomId) |
void |
reportSendResult(IMStats.IMType type,
java.lang.String chatroomId,
boolean succ) |
public static IMStats getInstance()
public void clear()
public void reportInit()
public long getInitTimestamp()
public void reportConnect(IMStats.IMType type, java.lang.String chatroomId, boolean connected)
public void reportJoin(IMStats.IMType type, java.lang.String chatroomId, boolean joined, long joinStartTimestamp)
public void reportConnectionStatusAtEntrance(IMStats.IMType type, java.lang.String chatroomId, boolean connected)
public void reportSend(IMStats.IMType type, java.lang.String chatroomId)
public void reportSendResult(IMStats.IMType type, java.lang.String chatroomId, boolean succ)
public boolean isConnected(IMStats.IMType type, java.lang.String chatroomId)
public boolean isJoined(IMStats.IMType type, java.lang.String chatroomId)
public int getSendCount(IMStats.IMType type, java.lang.String chatroomId)
public int getSendResultCount(IMStats.IMType type, java.lang.String chatroomId, boolean succ)
public long getJoinTimestamp(IMStats.IMType type, java.lang.String chatroomId)
public long getJoinSuccessTimeTaken(IMStats.IMType type, java.lang.String chatroomId)
public boolean isConnectedAtEntrance(IMStats.IMType type, java.lang.String chatroomId)