KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > broker > region > policy > StorePendingQueueMessageStoragePolicy


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
4  * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
5  * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
6  * License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  */

14
15 package org.apache.activemq.broker.region.policy;
16
17 import org.apache.activemq.broker.region.Queue;
18 import org.apache.activemq.broker.region.cursors.PendingMessageCursor;
19 import org.apache.activemq.broker.region.cursors.StoreQueueCursor;
20 import org.apache.activemq.kaha.Store;
21
22
23 /**
24  * Creates a StoreQueueCursor
25  * *
26  * @org.apache.xbean.XBean element="storeCursor" description="Pending messages paged in from the Store"
27  *
28  * @version $Revision$
29  */

30 public class StorePendingQueueMessageStoragePolicy implements PendingQueueMessageStoragePolicy{
31
32     /**
33      * @param queue
34      * @param tmpStore
35      * @return the cursor
36      * @see org.apache.activemq.broker.region.policy.PendingQueueMessageStoragePolicy#getQueuePendingMessageCursor(org.apache.openjpa.lib.util.concurrent.Queue, org.apache.activemq.kaha.Store)
37      */

38     public PendingMessageCursor getQueuePendingMessageCursor(Queue queue,Store tmpStore){
39         return new StoreQueueCursor(queue,tmpStore);
40     }
41
42     
43 }
44
Popular Tags