本文整理了Java中org.jgroups.util.Util.startFlush()
方法的一些代码示例,展示了Util.startFlush()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.startFlush()
方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:startFlush
[英]Performs the flush of the given channel
[中]执行给定通道的刷新
代码示例来源:origin: wildfly/wildfly
/**
* Performs the flush of the given channel and the specified flush participants
* @param c the channel
* @param flushParticipants the flush participants in this flush attempt
* @see JChannel#startFlush(List,boolean)
*/
public static boolean startFlush(JChannel c,List<Address> flushParticipants) {
return startFlush(c,flushParticipants,4,1000,5000);
}
代码示例来源:origin: wildfly/wildfly
/**
* Performs the flush of the given channel
* @param c the channel
* @return true if channel was flushed successfully, false otherwise
* @see JChannel#startFlush(boolean)
*/
public static boolean startFlush(JChannel c) {
return startFlush(c,4,1000,5000);
}
代码示例来源:origin: wildfly/wildfly
/** Retrieves state from the target member. See {@link #getState(Address,long)} for details */
public JChannel getState(Address target, long timeout, boolean useFlushIfPresent) throws Exception {
Callable<Boolean> flusher =() -> Util.startFlush(JChannel.this);
return getState(target, timeout, useFlushIfPresent?flusher:null);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Performs the flush of the given channel
* @param c the channel
* @return true if channel was flushed successfully, false otherwise
* @see JChannel#startFlush(boolean)
*/
public static boolean startFlush(JChannel c) {
return startFlush(c,4,1000,5000);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* Performs the flush of the given channel and the specified flush participants
* @param c the channel
* @param flushParticipants the flush participants in this flush attempt
* @see JChannel#startFlush(List,boolean)
*/
public static boolean startFlush(JChannel c,List<Address> flushParticipants) {
return startFlush(c,flushParticipants,4,1000,5000);
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/** Retrieves state from the target member. See {@link #getState(Address,long)} for details */
public JChannel getState(Address target, long timeout, boolean useFlushIfPresent) throws Exception {
Callable<Boolean> flusher =() -> Util.startFlush(JChannel.this);
return getState(target, timeout, useFlushIfPresent?flusher:null);
}
内容来源于网络,如有侵权,请联系作者删除!