org.hibernate.search.backend.jgroups.impl

## Interface MessageSenderService

- All Superinterfaces:
    Service
  All Known Implementing Classes:
    DispatchMessageSender

      public interface MessageSenderService
      extends Service

  Abstract away message submission. Even though an internal contract we use the service mechanism to get life cycle management.
  Author:
    Ales Justin

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Address` | `getAddress()` Get sender's address.
    `View` | `getView()` Get current view.
    `void` | `send(Message message, boolean synchronous, long messageTimeout)` Send message.

- - ### Method Detail

    - #### send

          void send(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

          Address getAddress()

      Get sender's address.
      Returns:
        the sender's address

    - #### getView

          View getView()

      Get current view.
      Returns:
        the current cluster view

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved