01: // $Id: Transport.java,v 1.2 2005/07/17 11:38:05 chrislott Exp $
02:
03: package org.jgroups;
04:
05: /**
06: * Defines a very small subset of the functionality of a channel,
07: * essentially only the methods for sending and receiving messages.
08: * Many building blocks require nothing else than a
09: * bare-bones facility to send and receive messages; therefore the Transport
10: * interface was created. It increases the genericness and portability of
11: * building blocks: being so simple, the Transport interface can easily be
12: * ported to a different toolkit, without requiring any modifications to
13: * building blocks.
14: */
15: public interface Transport {
16: void send(Message msg) throws Exception;
17:
18: Object receive(long timeout) throws Exception;
19: }
|