org.sourceforge.jemmrpc.server
Class ClientId

java.lang.Object
  extended by org.sourceforge.jemmrpc.server.ClientId

public class ClientId
extends java.lang.Object

A client identifier.

Author:
Rory Graves

Field Summary
protected  java.lang.String clientIdString
          The internal id of this client.
protected static java.util.concurrent.atomic.AtomicInteger nextClientId
          Internal counter for client ids
 
Constructor Summary
ClientId()
          Create a unique ClientId.
ClientId(java.lang.String internalId)
          Create a stored client id.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getInternalId()
          Returns the internal representation if this id for storage.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nextClientId

protected static final java.util.concurrent.atomic.AtomicInteger nextClientId
Internal counter for client ids


clientIdString

protected final java.lang.String clientIdString
The internal id of this client.

Constructor Detail

ClientId

public ClientId()
Create a unique ClientId.


ClientId

public ClientId(java.lang.String internalId)
Create a stored client id.

Parameters:
internalId - The internal id of the client.
Method Detail

getInternalId

public java.lang.String getInternalId()
Returns the internal representation if this id for storage.

Returns:
The internal representation of this id.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.