KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > presumo > jms > plugin > transport > Transport


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

21 package com.presumo.jms.plugin.transport;
22
23 import com.presumo.jms.message.JmsMessage;
24
25 /**
26  * Interface which all transport types must implement. Represents
27  * a duplex connection with a remote host.
28  *
29  * @author Dan Greff
30  */

31 public interface Transport
32 {
33   public void sendMessages(JmsMessage [] message) throws java.io.IOException JavaDoc;
34   public JmsMessage [] receiveMessages() throws java.io.IOException JavaDoc;
35   public String JavaDoc getRemoteID();
36   public void close();
37 }
Popular Tags