<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Thread safe unique sequence generation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/thread-safe-unique-sequence-generation/m-p/278483#M231613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want your&amp;nbsp; sequence generation class to be survived between server restart ,you&amp;nbsp; can consider to use db seqence(oracle sequence,mysql&amp;nbsp; LAST_INSERT_ID() ..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not,You can use Atomic Integer ,it is thread safe.you can define a singleton class and use AtomicInteger 's getAndIncrement() method to generate sequence number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 06:08:03 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-06-20T06:08:03Z</dc:date>
    <item>
      <title>Thread safe unique sequence generation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-safe-unique-sequence-generation/m-p/278482#M231612</link>
      <description>Please let me know what is the best and simple thread safe unique sequence generation approach.Appreciate response with links/sample code.</description>
      <pubDate>Thu, 19 Jun 2014 15:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-safe-unique-sequence-generation/m-p/278482#M231612</guid>
      <dc:creator>narayana_giri</dc:creator>
      <dc:date>2014-06-19T15:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Thread safe unique sequence generation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-safe-unique-sequence-generation/m-p/278483#M231613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want your&amp;nbsp; sequence generation class to be survived between server restart ,you&amp;nbsp; can consider to use db seqence(oracle sequence,mysql&amp;nbsp; LAST_INSERT_ID() ..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If not,You can use Atomic Integer ,it is thread safe.you can define a singleton class and use AtomicInteger 's getAndIncrement() method to generate sequence number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 06:08:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-safe-unique-sequence-generation/m-p/278483#M231613</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-20T06:08:03Z</dc:date>
    </item>
  </channel>
</rss>

