Class RpcUserAuthCounter
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.helper.RpcUserAuthCounter
-
public class RpcUserAuthCounter extends java.lang.ObjectKeeps track of the user's login/out counts per RPC server.
-
-
Constructor Summary
Constructors Constructor Description RpcUserAuthCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCount()Clears all counts for the RPC server.intdecrementAndGet(java.lang.String authPrefix)Decrement and get the count for the specified user auth prefix.intgetCount(java.lang.String authPrefix)Gets the count for the specified user auth prefix.intincrementAndGet(java.lang.String authPrefix)Increment and get the count for the specified user auth prefix.java.lang.StringtoString()Returns the string value of the user auth counter.
-
-
-
Method Detail
-
incrementAndGet
public int incrementAndGet(java.lang.String authPrefix)
Increment and get the count for the specified user auth prefix.- Parameters:
authPrefix- the auth prefix- Returns:
- the int
-
decrementAndGet
public int decrementAndGet(java.lang.String authPrefix)
Decrement and get the count for the specified user auth prefix.- Parameters:
authPrefix- the auth prefix- Returns:
- the int
-
getCount
public int getCount(java.lang.String authPrefix)
Gets the count for the specified user auth prefix.- Parameters:
authPrefix- the auth prefix- Returns:
- the count
-
clearCount
public void clearCount()
Clears all counts for the RPC server.
-
toString
public java.lang.String toString()
Returns the string value of the user auth counter.- Overrides:
toStringin classjava.lang.Object
-
-