本文整理了Java中org.glassfish.grizzly.Buffer.dispose()
方法的一些代码示例,展示了Buffer.dispose()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.dispose()
方法的具体详情如下:
包路径:org.glassfish.grizzly.Buffer
类名称:Buffer
方法名:dispose
[英]Notify the allocator that the space for this Buffer is no longer needed. All calls to methods on a Buffer will fail after a call to dispose().
[中]通知分配器不再需要此缓冲区的空间。在调用dispose()后,对缓冲区上方法的所有调用都将失败。
代码示例来源:origin: com.ning/async-http-client
buffer.trim();
} else {
buffer.dispose();
if (readBytes < 0) {
last = true;
代码示例来源:origin: com.ning/async-http-client
buffer.trim();
} else {
buffer.dispose();
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeBuffers(final Buffer currentBuffer, final Buffer bigBuffer) {
if (currentBuffer != null) {
currentBuffer.dispose();
}
if (bigBuffer != null) {
bigBuffer.allowBufferDispose(true);
if (bigBuffer.isComposite()) {
((CompositeBuffer) bigBuffer).allowInternalBuffersDispose(true);
}
bigBuffer.dispose();
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
代码示例来源:origin: javaee/grizzly
private static void disposeDstBuffer(LZMAInputState state) {
final Buffer dstBuffer = state.getDst();
if (dstBuffer != null) {
dstBuffer.dispose();
state.setDst(null);
}
}
内容来源于网络,如有侵权,请联系作者删除!