- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.doesPackageExist()
方法的一些代码示例,展示了XByteBuffer.doesPackageExist()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XByteBuffer.doesPackageExist()
方法的具体详情如下:
包路径:org.apache.catalina.tribes.io.XByteBuffer
类名称:XByteBuffer
方法名:doesPackageExist
[英]Method to check if a package exists in this byte buffer.
[中]方法检查此字节缓冲区中是否存在包。
代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource
protected boolean read(SelectionKey key) throws IOException {
//if there is no message here, we are done
if ( current == null ) return true;
int read = socketChannel.read(readbuf);
//end of stream
if ( read == -1 ) throw new IOException("Unable to receive an ack message. EOF on socket channel has been reached.");
//no data read
else if ( read == 0 ) return false;
readbuf.flip();
ackbuf.append(readbuf,read);
readbuf.clear();
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
boolean ack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
boolean fack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA);
if ( fack && getThrowOnFailedAck() ) throw new RemoteProcessException("Received a failed ack:org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA");
return ack || fack;
} else {
return false;
}
}
代码示例来源:origin: codefollower/Tomcat-Research
protected boolean read() throws IOException {
//if there is no message here, we are done
if ( current == null ) return true;
int read = isUdpBased()?dataChannel.read(readbuf) : socketChannel.read(readbuf);
//end of stream
if ( read == -1 ) throw new IOException("Unable to receive an ack message. EOF on socket channel has been reached.");
//no data read
else if ( read == 0 ) return false;
readbuf.flip();
ackbuf.append(readbuf,read);
readbuf.clear();
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
boolean ack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
boolean fack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA);
if ( fack && getThrowOnFailedAck() ) throw new RemoteProcessException("Received a failed ack:org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA");
return ack || fack;
} else {
return false;
}
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes
protected boolean read(SelectionKey key) throws IOException {
//if there is no message here, we are done
if ( current == null ) return true;
int read = isUdpBased()?dataChannel.read(readbuf) : socketChannel.read(readbuf);
//end of stream
if ( read == -1 ) throw new IOException("Unable to receive an ack message. EOF on socket channel has been reached.");
//no data read
else if ( read == 0 ) return false;
readbuf.flip();
ackbuf.append(readbuf,read);
readbuf.clear();
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
boolean ack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
boolean fack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA);
if ( fack && getThrowOnFailedAck() ) throw new RemoteProcessException("Received a failed ack:org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA");
return ack || fack;
} else {
return false;
}
}
代码示例来源:origin: org.apache.tomcat/tomcat-tribes
protected boolean read() throws IOException {
//if there is no message here, we are done
if ( current == null ) return true;
int read = isUdpBased()?dataChannel.read(readbuf) : socketChannel.read(readbuf);
//end of stream
if ( read == -1 ) throw new IOException(sm.getString("nioSender.unable.receive.ack"));
//no data read
else if ( read == 0 ) return false;
readbuf.flip();
ackbuf.append(readbuf,read);
readbuf.clear();
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
boolean ack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
boolean fack = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA);
if ( fack && getThrowOnFailedAck() ) throw new RemoteProcessException(sm.getString("nioSender.receive.failedAck"));
return ack || fack;
} else {
return false;
}
}
代码示例来源:origin: codefollower/Tomcat-Research
byte d = (byte)i;
ackbuf.append(d);
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
ackReceived = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/tribes
byte d = (byte)i;
ackbuf.append(d);
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
ackReceived = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
代码示例来源:origin: org.apache.catalina.springsource/com.springsource.org.apache.catalina.tribes.springsource
byte d = (byte)i;
ackbuf.append(d);
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
ackReceived = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
代码示例来源:origin: org.apache.tomcat/tomcat-tribes
byte d = (byte)i;
ackbuf.append(d);
if (ackbuf.doesPackageExist() ) {
byte[] ackcmd = ackbuf.extractDataPackage(true).getBytes();
ackReceived = Arrays.equals(ackcmd,org.apache.catalina.tribes.transport.Constants.ACK_DATA);
我在我的服务器中使用静态成员部落配置进行 Tomcat session 复制,并且工作正常。但是,我想在应用程序中利用相同的设置在集群成员之间发送消息,以促进我的应用程序使用的事件架构。我想使用它的原
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer类的一些代码示例,展示了XByteBuffer类的具体用法。这些代码示例主要来源于Github/S
我已阅读 Clustering/Session Replication HOW-TO对于Tomcat 7。我想配置一个密码,以确保未经授权的节点无法加入集群。 我原以为可以在 Tomcat serve
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.getCapacity()方法的一些代码示例,展示了XByteBuffer.getCapacit
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.extractPackage()方法的一些代码示例,展示了XByteBuffer.extract
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.clear()方法的一些代码示例,展示了XByteBuffer.clear()的具体用法。这些代
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.firstIndexOf()方法的一些代码示例,展示了XByteBuffer.firstInde
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.toBytes()方法的一些代码示例,展示了XByteBuffer.toBytes()的具体用法
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.setLength()方法的一些代码示例,展示了XByteBuffer.setLength()的
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.serialize()方法的一些代码示例,展示了XByteBuffer.serialize()的
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.getBytes()方法的一些代码示例,展示了XByteBuffer.getBytes()的具体
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.expand()方法的一些代码示例,展示了XByteBuffer.expand()的具体用法。这
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.toLong()方法的一些代码示例,展示了XByteBuffer.toLong()的具体用法。这
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.getBytesDirect()方法的一些代码示例,展示了XByteBuffer.getByte
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.toInt()方法的一些代码示例,展示了XByteBuffer.toInt()的具体用法。这些代
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.()方法的一些代码示例,展示了XByteBuffer.()的具体用法。这些代码示例主要来源于Gi
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.trim()方法的一些代码示例,展示了XByteBuffer.trim()的具体用法。这些代码示
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.createDataPackage()方法的一些代码示例,展示了XByteBuffer.crea
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.reset()方法的一些代码示例,展示了XByteBuffer.reset()的具体用法。这些代
本文整理了Java中org.apache.catalina.tribes.io.XByteBuffer.toBoolean()方法的一些代码示例,展示了XByteBuffer.toBoolean()的
我是一名优秀的程序员,十分优秀!