org.jgroups.util.Util.startFlush()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(226)

本文整理了Java中org.jgroups.util.Util.startFlush()方法的一些代码示例,展示了Util.startFlush()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.startFlush()方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:startFlush

Util.startFlush介绍

[英]Performs the flush of the given channel
[中]执行给定通道的刷新

代码示例

代码示例来源:origin: wildfly/wildfly

  1. /**
  2. * Performs the flush of the given channel and the specified flush participants
  3. * @param c the channel
  4. * @param flushParticipants the flush participants in this flush attempt
  5. * @see JChannel#startFlush(List,boolean)
  6. */
  7. public static boolean startFlush(JChannel c,List<Address> flushParticipants) {
  8. return startFlush(c,flushParticipants,4,1000,5000);
  9. }

代码示例来源:origin: wildfly/wildfly

  1. /**
  2. * Performs the flush of the given channel
  3. * @param c the channel
  4. * @return true if channel was flushed successfully, false otherwise
  5. * @see JChannel#startFlush(boolean)
  6. */
  7. public static boolean startFlush(JChannel c) {
  8. return startFlush(c,4,1000,5000);
  9. }

代码示例来源:origin: wildfly/wildfly

  1. /** Retrieves state from the target member. See {@link #getState(Address,long)} for details */
  2. public JChannel getState(Address target, long timeout, boolean useFlushIfPresent) throws Exception {
  3. Callable<Boolean> flusher =() -> Util.startFlush(JChannel.this);
  4. return getState(target, timeout, useFlushIfPresent?flusher:null);
  5. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. /**
  2. * Performs the flush of the given channel
  3. * @param c the channel
  4. * @return true if channel was flushed successfully, false otherwise
  5. * @see JChannel#startFlush(boolean)
  6. */
  7. public static boolean startFlush(JChannel c) {
  8. return startFlush(c,4,1000,5000);
  9. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. /**
  2. * Performs the flush of the given channel and the specified flush participants
  3. * @param c the channel
  4. * @param flushParticipants the flush participants in this flush attempt
  5. * @see JChannel#startFlush(List,boolean)
  6. */
  7. public static boolean startFlush(JChannel c,List<Address> flushParticipants) {
  8. return startFlush(c,flushParticipants,4,1000,5000);
  9. }

代码示例来源:origin: org.jboss.eap/wildfly-client-all

  1. /** Retrieves state from the target member. See {@link #getState(Address,long)} for details */
  2. public JChannel getState(Address target, long timeout, boolean useFlushIfPresent) throws Exception {
  3. Callable<Boolean> flusher =() -> Util.startFlush(JChannel.this);
  4. return getState(target, timeout, useFlushIfPresent?flusher:null);
  5. }

相关文章

Util类方法