Class SiteMasterPickerImpl

  • All Implemented Interfaces:
    org.jgroups.protocols.relay.SiteMasterPicker

    public class SiteMasterPickerImpl
    extends Object
    implements org.jgroups.protocols.relay.SiteMasterPicker
    A SiteMasterPicker implementation that picks the first route.

    Only a single route can be used in order to keep the data consistent for asynchronous cross-site replication.

    Since:
    9.0
    Author:
    Pedro Ruivo
    • Constructor Detail

      • SiteMasterPickerImpl

        public SiteMasterPickerImpl()
    • Method Detail

      • pickSiteMaster

        public org.jgroups.Address pickSiteMaster​(List<org.jgroups.Address> site_masters,
                                                  org.jgroups.Address original_sender)
        Specified by:
        pickSiteMaster in interface org.jgroups.protocols.relay.SiteMasterPicker
      • pickRoute

        public org.jgroups.protocols.relay.Route pickRoute​(String site,
                                                           List<org.jgroups.protocols.relay.Route> routes,
                                                           org.jgroups.Address original_sender)
        Specified by:
        pickRoute in interface org.jgroups.protocols.relay.SiteMasterPicker