org.hibernate.search.backend.impl.jgroups
Interface MessageSender


public interface MessageSender

Abstract away message submission.

Author:
Ales Justin

Method Summary
 org.jgroups.Address getAddress()
          Get sender's address.
 org.jgroups.View getView()
          Get current view.
 void send(org.jgroups.Message message, boolean synchronous, long messageTimeout)
          Send message.
 void stop()
          Stop sender.
 

Method Detail

stop

void stop()
Stop sender.


send

void send(org.jgroups.Message message,
          boolean synchronous,
          long messageTimeout)
          throws Exception
Send message.

Parameters:
message - the JGroups message
synchronous - set to true if we need to block until an ACK is received
messageTimeout - in milliseconds
Throws:
Exception - for any error

getAddress

org.jgroups.Address getAddress()
Get sender's address.

Returns:
the sender's address

getView

org.jgroups.View getView()
Get current view.

Returns:
the current cluster view


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved