io.rsocket.Frame.replace()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(120)

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

Frame.replace介绍

[英]Returns a new Frame which contains the specified content.
[中]

代码示例

代码示例来源:origin: rsocket/rsocket-java

/**
 * Duplicates this {@link Frame}. Be aware that this will not automatically call {@link
 * #retain()}.
 */
@Override
public Frame duplicate() {
 return replace(content.duplicate());
}

代码示例来源:origin: rsocket/rsocket-java

/** Creates a deep copy of this {@link Frame}. */
@Override
public Frame copy() {
 return replace(content.copy());
}

代码示例来源:origin: rsocket/rsocket-java

/**
 * Duplicates this {@link Frame}. This method returns a retained duplicate unlike {@link
 * #duplicate()}.
 *
 * @see ByteBuf#retainedDuplicate()
 */
@Override
public Frame retainedDuplicate() {
 return replace(content.retainedDuplicate());
}

代码示例来源:origin: io.rsocket/rsocket-core

/** Creates a deep copy of this {@link Frame}. */
@Override
public Frame copy() {
 return replace(content.copy());
}

代码示例来源:origin: io.rsocket/rsocket-core

/**
 * Duplicates this {@link Frame}. Be aware that this will not automatically call {@link
 * #retain()}.
 */
@Override
public Frame duplicate() {
 return replace(content.duplicate());
}

代码示例来源:origin: io.rsocket/rsocket-core

/**
 * Duplicates this {@link Frame}. This method returns a retained duplicate unlike {@link
 * #duplicate()}.
 *
 * @see ByteBuf#retainedDuplicate()
 */
@Override
public Frame retainedDuplicate() {
 return replace(content.retainedDuplicate());
}

相关文章