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


public interface MessageSender

Abstract away message submission. e.g. either via channel directly or using message dispatcher

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)
          Send message.
 void start()
          Start sender.
 void stop()
          Stop sender.
 

Method Detail

start

void start()
Start sender.


stop

void stop()
Stop sender.


send

void send(org.jgroups.Message message)
          throws Exception
Send message.

Parameters:
message - the JGroups message
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