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

org.jgroups.blocks.cs.Client Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 34.0.0.Final
Show newest version
package org.jgroups.blocks.cs;

import org.jgroups.Address;

import java.nio.ByteBuffer;

/**
 * Defines common operations for clients (TCP or NIO)
 * @author Bela Ban
 * @since  3.6.5
 */
public interface Client {
    Address localAddress();

    Address remoteAddress();

    boolean isConnected();

    /** Sends data to the remote server. The server's address must have been set before. */
    void send(byte[] data, int offset, int length) throws Exception;

    /** Sends data to the remote server.  The server's address must have been set before. */
    void send(ByteBuffer data) throws Exception;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy