本文整理了Java中io.rsocket.Frame.replace()
方法的一些代码示例,展示了Frame.replace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Frame.replace()
方法的具体详情如下:
包路径:io.rsocket.Frame
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!