[jboss-cvs] JBoss Messaging SVN: r4872 - branches/Branch_JBMESSAGING-1314/src/main/org/jboss/messaging/core/paging.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Aug 26 13:06:04 EDT 2008


Author: clebert.suconic at jboss.com
Date: 2008-08-26 13:06:04 -0400 (Tue, 26 Aug 2008)
New Revision: 4872

Added:
   branches/Branch_JBMESSAGING-1314/src/main/org/jboss/messaging/core/paging/PageMessage.java
Log:
Adding an interface for PageMessage

Added: branches/Branch_JBMESSAGING-1314/src/main/org/jboss/messaging/core/paging/PageMessage.java
===================================================================
--- branches/Branch_JBMESSAGING-1314/src/main/org/jboss/messaging/core/paging/PageMessage.java	                        (rev 0)
+++ branches/Branch_JBMESSAGING-1314/src/main/org/jboss/messaging/core/paging/PageMessage.java	2008-08-26 17:06:04 UTC (rev 4872)
@@ -0,0 +1,44 @@
+/*
+ * 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.core.paging;
+
+import org.jboss.messaging.core.journal.EncodingSupport;
+import org.jboss.messaging.core.server.ServerMessage;
+
+
+/**
+ * 
+ * The record taken by Page.
+ * We can't just record the ServerMessage as we need other information (such as the TransactionID used during paging)
+ * 
+ * @author <a href="mailto:clebert.suconic at jboss.com">Clebert Suconic</a>
+ *
+ */
+public interface PageMessage extends EncodingSupport
+{
+   ServerMessage getMessage();
+
+   long getTransactionID();
+
+}




More information about the jboss-cvs-commits mailing list