com.perforce.p4java.impl.mapbased.rpc.helper
Class RpcUserAuthCounter

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.rpc.helper.RpcUserAuthCounter

public class RpcUserAuthCounter
extends Object

Keeps track of the user's login/out counts per RPC server.


Constructor Summary
RpcUserAuthCounter()
           
 
Method Summary
 void clearCount()
          Clears all counts for the RPC server.
 int decrementAndGet(String authPrefix)
          Decrement and get the count for the specified user auth prefix.
 int getCount(String authPrefix)
          Gets the count for the specified user auth prefix.
 int incrementAndGet(String authPrefix)
          Increment and get the count for the specified user auth prefix.
 String toString()
          Returns the string value of the user auth counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RpcUserAuthCounter

public RpcUserAuthCounter()
Method Detail

incrementAndGet

public int incrementAndGet(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(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(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 String toString()
Returns the string value of the user auth counter.

Overrides:
toString in class Object
Parameters:
the - string value


Copyright © 2015 Perforce Software. All Rights Reserved.