Class RpcUserAuthCounter
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.helper.RpcUserAuthCounter
Keeps track of the user's login/out counts per RPC server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all counts for the RPC server.intdecrementAndGet(String authPrefix) Decrement and get the count for the specified user auth prefix.intGets the count for the specified user auth prefix.intincrementAndGet(String authPrefix) Increment and get the count for the specified user auth prefix.toString()Returns the string value of the user auth counter.
-
Constructor Details
-
RpcUserAuthCounter
public RpcUserAuthCounter()
-
-
Method Details
-
incrementAndGet
Increment and get the count for the specified user auth prefix.- Parameters:
authPrefix- the auth prefix- Returns:
- the int
-
decrementAndGet
Decrement and get the count for the specified user auth prefix.- Parameters:
authPrefix- the auth prefix- Returns:
- the int
-
getCount
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
Returns the string value of the user auth counter.
-