All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gemstone.org.jgroups.Transport Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
/** Notice of modification as required by the LGPL
 *  This file was modified by Gemstone Systems Inc. on
 *  $Date$
 **/
// $Id: Transport.java,v 1.2 2005/07/17 11:38:05 chrislott Exp $

package com.gemstone.org.jgroups;

/**
 * Defines a very small subset of the functionality of a channel, 
 * essentially only the methods for sending and receiving messages. 
 * Many building blocks require nothing else than a 
 * bare-bones facility to send and receive messages; therefore the Transport 
 * interface was created. It increases the genericness and portability of 
 * building blocks: being so simple, the Transport interface can easily be 
 * ported to a different toolkit, without requiring any modifications to 
 * building blocks.
 */
public interface Transport {    
    void     send(Message msg) throws Exception;
    Object   receive(long timeout) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy