[jboss-cvs] JBoss Messaging SVN: r5031 - trunk/src/main/org/jboss/messaging/util.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 26 13:45:57 EDT 2008


Author: timfox
Date: 2008-09-26 13:45:57 -0400 (Fri, 26 Sep 2008)
New Revision: 5031

Added:
   trunk/src/main/org/jboss/messaging/util/IDGenerator.java
Log:
Failover


Added: trunk/src/main/org/jboss/messaging/util/IDGenerator.java
===================================================================
--- trunk/src/main/org/jboss/messaging/util/IDGenerator.java	                        (rev 0)
+++ trunk/src/main/org/jboss/messaging/util/IDGenerator.java	2008-09-26 17:45:57 UTC (rev 5031)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005-2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+
+package org.jboss.messaging.util;
+
+/**
+ * A IDGenerator
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * 
+ * Created 25 Sep 2008 10:28:52
+ *
+ *
+ */
+public interface IDGenerator
+{
+   long generateID();
+   
+   long getCurrentID();
+}




More information about the jboss-cvs-commits mailing list