net.ttddyy.dsproxy
Class QueryCount
java.lang.Object
net.ttddyy.dsproxy.QueryCount
public class QueryCount
- extends Object
Considered to be used under same thread.
If used by multiple threads, need to change int to AtomicInteger.
- Author:
- Tadaya Tsuyukubo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryCount
public QueryCount()
increment
public void increment(QueryType queryType)
incrementSelect
public void incrementSelect()
incrementInsert
public void incrementInsert()
incrementUpdate
public void incrementUpdate()
incrementDelete
public void incrementDelete()
incrementOther
public void incrementOther()
incrementCall
public void incrementCall()
incrementFailure
public void incrementFailure()
incrementElapsedTime
public void incrementElapsedTime(long delta)
getTotalNumOfQuery
public int getTotalNumOfQuery()
getSelect
public int getSelect()
setSelect
public void setSelect(int select)
getInsert
public int getInsert()
setInsert
public void setInsert(int insert)
getUpdate
public int getUpdate()
setUpdate
public void setUpdate(int update)
getDelete
public int getDelete()
setDelete
public void setDelete(int delete)
getOther
public int getOther()
setOther
public void setOther(int other)
getCall
public int getCall()
setCall
public void setCall(int call)
getFailure
public int getFailure()
setFailure
public void setFailure(int failure)
getElapsedTime
public long getElapsedTime()
setElapsedTime
public void setElapsedTime(long elapsedTime)
Copyright © 2012. All Rights Reserved.