org.marketcetera.client
Class ClientIDFactory

java.lang.Object
  extended by org.marketcetera.client.ClientIDFactory
All Implemented Interfaces:
IDFactory

public class ClientIDFactory
extends Object
implements IDFactory

Client's ID factory that generates unique IDs based on IDs given out by the server. The generate IDs have the supplied prefix, if one is supplied, followed by the ID provided by the server, followed by a client generated number between 000-999. A request is made to the server to request the next ID value, when the client ID value reaches 999.

Since:
1.0.0
Version:
$Id: ClientIDFactory.java 16154 2012-07-14 16:34:05Z colin $
Author:
anshul@marketcetera.com

Method Summary
 String getNext()
           
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNext

public String getNext()
               throws NoMoreIDsException
Specified by:
getNext in interface IDFactory
Throws:
NoMoreIDsException

init

public void init()
          throws NoMoreIDsException
Specified by:
init in interface IDFactory
Throws:
NoMoreIDsException


Copyright © 2012. All Rights Reserved.