Tabnine Logo
FLUSH.waitForUnblock
Code IndexAdd Tabnine to your IDE (free)

How to use
waitForUnblock
method
in
org.jgroups.protocols.pbcast.FLUSH

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

origin: wildfly/wildfly

private Object handleConnect(Event evt, boolean waitForUnblock) {
  if (sentBlock.compareAndSet(false, true)) {
    sendBlockUpToChannel();
  }
  Object result = down_prot.down(evt);
  if (result instanceof Throwable) {
    // set the var back to its original state if we cannot
    // connect successfully
    sentBlock.set(false);
  }
  if(waitForUnblock)
    waitForUnblock();
  return result;
}
origin: wildfly/wildfly

@SuppressWarnings("unchecked")
private void onResume(Event evt) {
  List<Address> members =evt.getArg();
  long viewID = currentViewId();
  boolean isParticipant = false;
  synchronized(sharedLock) {
    isParticipant = flushMembers.contains(localAddress) || (members != null && members.contains(localAddress));
  }
  if (members == null || members.isEmpty()) {
    Message msg = new Message(null).src(localAddress);
    // Cannot be OOB since START_FLUSH is not OOB
    // we have to FIFO order two subsequent flushes
    if (log.isDebugEnabled())
      log.debug(localAddress + ": received RESUME, sending STOP_FLUSH to all");
    msg.putHeader(this.id, new FlushHeader(FlushHeader.STOP_FLUSH, viewID));
    down_prot.down(msg);
  } else {
    for (Address address : members) {
      Message msg = new Message(address).src(localAddress);
      // Cannot be OOB since START_FLUSH is not OOB
      // we have to FIFO order two subsequent flushes
      if (log.isDebugEnabled())
        log.debug(localAddress + ": received RESUME, sending STOP_FLUSH to " + address);
      msg.putHeader(this.id, new FlushHeader(FlushHeader.STOP_FLUSH, viewID));
      down_prot.down(msg);
    }
  }
  if(isParticipant)
    waitForUnblock();        
}
origin: org.jboss.eap/wildfly-client-all

private Object handleConnect(Event evt, boolean waitForUnblock) {
  if (sentBlock.compareAndSet(false, true)) {
    sendBlockUpToChannel();
  }
  Object result = down_prot.down(evt);
  if (result instanceof Throwable) {
    // set the var back to its original state if we cannot
    // connect successfully
    sentBlock.set(false);
  }
  if(waitForUnblock)
    waitForUnblock();
  return result;
}
origin: org.jboss.eap/wildfly-client-all

@SuppressWarnings("unchecked")
private void onResume(Event evt) {
  List<Address> members =evt.getArg();
  long viewID = currentViewId();
  boolean isParticipant = false;
  synchronized(sharedLock) {
    isParticipant = flushMembers.contains(localAddress) || (members != null && members.contains(localAddress));
  }
  if (members == null || members.isEmpty()) {
    Message msg = new Message(null).src(localAddress);
    // Cannot be OOB since START_FLUSH is not OOB
    // we have to FIFO order two subsequent flushes
    if (log.isDebugEnabled())
      log.debug(localAddress + ": received RESUME, sending STOP_FLUSH to all");
    msg.putHeader(this.id, new FlushHeader(FlushHeader.STOP_FLUSH, viewID));
    down_prot.down(msg);
  } else {
    for (Address address : members) {
      Message msg = new Message(address).src(localAddress);
      // Cannot be OOB since START_FLUSH is not OOB
      // we have to FIFO order two subsequent flushes
      if (log.isDebugEnabled())
        log.debug(localAddress + ": received RESUME, sending STOP_FLUSH to " + address);
      msg.putHeader(this.id, new FlushHeader(FlushHeader.STOP_FLUSH, viewID));
      down_prot.down(msg);
    }
  }
  if(isParticipant)
    waitForUnblock();        
}
org.jgroups.protocols.pbcastFLUSHwaitForUnblock

Popular methods of FLUSH

  • blockMessageDuringFlush
  • currentViewId
  • down
  • findHighestSequences
  • handleFlushReconcile
  • handleStartFlush
  • hasVirtualSynchronyGaps
  • isCurrentFlushMessage
  • onFlushCompleted
  • onFlushReconcileOK
  • onResume
  • onStartFlush
  • onResume,
  • onStartFlush,
  • onStopFlush,
  • onSuspect,
  • onSuspend,
  • onViewChange,
  • rejectFlush,
  • sendBlockUpToChannel,
  • startFlush,
  • handleConnect

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Runner (org.openjdk.jmh.runner)
  • Top 17 Plugins for Android Studio
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