Class RpcUserAuthCounter
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.helper.RpcUserAuthCounter
-
public class RpcUserAuthCounter extends java.lang.Object
Keeps 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 void
clearCount()
Clears all counts for the RPC server.int
decrementAndGet(java.lang.String authPrefix)
Decrement and get the count for the specified user auth prefix.int
getCount(java.lang.String authPrefix)
Gets the count for the specified user auth prefix.int
incrementAndGet(java.lang.String authPrefix)
Increment and get the count for the specified user auth prefix.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-