![JAR search and dependency download from the Maven repository](/logo.png)
org.hibernate.search.backend.jgroups.impl.MessageSenderService Maven / Gradle / Ivy
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.backend.jgroups.impl;
import org.hibernate.search.engine.service.spi.Service;
import org.jgroups.Address;
import org.jgroups.Message;
import org.jgroups.View;
/**
* Abstract away message submission.
*
* Even though an internal contract we use the service mechanism to get life cycle management.
*
* @author Ales Justin
*/
public interface MessageSenderService extends Service {
/**
* Send message.
*
* @param message the JGroups message
* @param synchronous set to true if we need to block until an ACK is received
* @param messageTimeout in milliseconds
* @throws java.lang.Exception for any error
*/
void send(Message message, boolean synchronous, long messageTimeout) throws Exception;
/**
* Get sender's address.
*
* @return the sender's address
*/
Address getAddress();
/**
* Get current view.
*
* @return the current cluster view
*/
View getView();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy