本文整理了Java中org.glassfish.grizzly.memory.Buffers.getBufferAppender()
方法的一些代码示例,展示了Buffers.getBufferAppender()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffers.getBufferAppender()
方法的具体详情如下:
包路径:org.glassfish.grizzly.memory.Buffers
类名称:Buffers
方法名:getBufferAppender
[英]Get the Appender which knows how to append Buffers. Returned Appender uses the same Buffer appending rules as described here Buffers#appendBuffers(org.glassfish.grizzly.memory.MemoryManager,org.glassfish.grizzly.Buffer,org.glassfish.grizzly.Buffer,boolean).
[中]获取知道如何附加缓冲区的Appender。返回的Appender使用与这里描述的相同的缓冲区追加规则Buffers#appendBuffers(org.glassfish.grizzly.memory.MemoryManager、org.glassfish.grizzly.Buffer、org.glassfish.grizzly.Buffer、boolean)。
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
static FilterStateElement create(
final boolean isIncomplete,
final Object remainder) {
if (remainder instanceof Buffer) {
return create(isIncomplete, (Buffer) remainder,
Buffers.getBufferAppender(true));
} else {
return create(isIncomplete, (Appendable) remainder);
}
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-core
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
代码示例来源:origin: javaee/grizzly
/**
* Get {@link NextAction} implementation, which instructs {@link FilterChain}
* stop executing phase.
*
* @param incompleteChunk signals, that there is a data chunk remaining,
* which doesn't represent complete message. As more data becomes available
* but before {@link FilterChain} calls the current {@link Filter},
* it will check if the {@link Filter} has any data stored after the
* last invocation. If a remainder is present it will append the new data
* to the stored one and pass the result as the FilterChainContext message.
*
* @return {@link NextAction} implementation, which instructs {@link FilterChain}
* to stop executing phase.
*
* @throws IllegalArgumentException if remainder's type is not {@link Buffer} or
* {@link Appendable}.
*/
public NextAction getStopAction(final Object incompleteChunk) {
if (incompleteChunk instanceof Buffer) {
return getStopAction((Buffer) incompleteChunk,
Buffers.getBufferAppender(true));
}
return getStopAction(incompleteChunk, null);
}
内容来源于网络,如有侵权,请联系作者删除!