Tabnine Logo
STABLE._sendStabilityMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
_sendStabilityMessage
method
in
org.jgroups.protocols.pbcast.STABLE

Best Java code snippets using org.jgroups.protocols.pbcast.STABLE._sendStabilityMessage (Showing top 4 results out of 315)

origin: wildfly/wildfly

public void run() {
  _sendStabilityMessage(stability_digest, view_id);
}
origin: wildfly/wildfly

/**
 Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_delay] secs).
 The reason for waiting a random amount of time is that, in the worst case, all members receive a
 STABLE_GOSSIP message from the last outstanding member at the same time and would therefore mcast the
 STABILITY message at the same time too. To avoid this, each member waits random N msecs. If, before N
 elapses, some other member sent the STABILITY message, we just cancel our own message. If, during
 waiting for N msecs to send STABILITY message S1, another STABILITY message S2 is to be sent, we just discard S2.
 @param tmp A copy of the stability digest, so we don't need to copy it again
 */
protected void sendStabilityMessage(Digest tmp, final ViewId view_id) {
  if(send_stable_msgs_to_coord_only || stability_delay <= 1)
    _sendStabilityMessage(tmp, view_id);
  else {
    // give other members a chance to mcast STABILITY message. if we receive STABILITY by the end of our random
    // sleep, we will not send the STABILITY msg. this prevents that all mbrs mcast a STABILITY msg at the same time
    startStabilityTask(tmp, view_id, Util.random(stability_delay));
  }
}
origin: org.jboss.eap/wildfly-client-all

public void run() {
  _sendStabilityMessage(stability_digest, view_id);
}
origin: org.jboss.eap/wildfly-client-all

/**
 Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_delay] secs).
 The reason for waiting a random amount of time is that, in the worst case, all members receive a
 STABLE_GOSSIP message from the last outstanding member at the same time and would therefore mcast the
 STABILITY message at the same time too. To avoid this, each member waits random N msecs. If, before N
 elapses, some other member sent the STABILITY message, we just cancel our own message. If, during
 waiting for N msecs to send STABILITY message S1, another STABILITY message S2 is to be sent, we just discard S2.
 @param tmp A copy of the stability digest, so we don't need to copy it again
 */
protected void sendStabilityMessage(Digest tmp, final ViewId view_id) {
  if(send_stable_msgs_to_coord_only || stability_delay <= 1)
    _sendStabilityMessage(tmp, view_id);
  else {
    // give other members a chance to mcast STABILITY message. if we receive STABILITY by the end of our random
    // sleep, we will not send the STABILITY msg. this prevents that all mbrs mcast a STABILITY msg at the same time
    startStabilityTask(tmp, view_id, Util.random(stability_delay));
  }
}
org.jgroups.protocols.pbcastSTABLE_sendStabilityMessage

Popular methods of STABLE

  • addVote
    Adds mbr to votes and returns true if we have all the votes, otherwise false.
  • allVotesReceived
    Votes is already locked and guaranteed to be non-null
  • getDigest
  • handleRegularMessage
  • handleStabilityMessage
  • handleStableMessage
    Digest d contains (a) the highest seqnos deliverable for each sender and (b) the highest seqnosseen
  • handleViewChange
  • resetDigest
  • resume
  • sendStabilityMessage
    Schedules a stability message to be mcast after a random number of milliseconds (range [1-stability_
  • sendStableMessage
    Broadcasts a STABLE message of the current digest to all members (or the coordinator only). The mess
  • startResumeTask
  • sendStableMessage,
  • startResumeTask,
  • startStabilityTask,
  • startStableTask,
  • stopResumeTask,
  • stopStabilityTask,
  • stopStableTask,
  • suspend,
  • updateLocalDigest,
  • <init>

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JCheckBox (javax.swing)
  • Option (scala)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now