KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mr > kernel > services > queues > ForeignQueueImpl


1 /*
2  * Copyright Coridan Inc.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17  * USA
18  *
19  * Support at:
20  * http://sourceforge.net/projects/mantaray/
21  * Or
22  * support@coridan.com
23  */

24
25 package org.mr.kernel.services.queues;
26
27 import org.mr.core.protocol.MantaBusMessage;
28
29 import java.util.List JavaDoc;
30
31
32 /**
33  * ForeignServiceImpl.java
34  *
35  *
36  * Created: Wed Mar 15 18:10:00 2006
37  *
38  * @author Uri Schneider
39  * @version 1.0
40  */

41
42 public interface ForeignQueueImpl {
43     public void init();
44     public void sendToHead(MantaBusMessage message);
45     public void send(MantaBusMessage message);
46     public MantaBusMessage receiveNoWait();
47     public MantaBusMessage receive();
48     public MantaBusMessage receive(int timeout);
49     public List JavaDoc getCopy();
50     public boolean isEmpty();
51     public void waitForMessages();
52 }// ForeignServiceImpl
53
Popular Tags