| 程序包 | 说明 |
|---|---|
| org.apache.ratis.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <V> ReferenceCountedObject<V> |
ReferenceCountedObject.wrap(V value)
The same as wrap(value, EMPTY, EMPTY), where EMPTY is an empty method.
|
static <V> ReferenceCountedObject<V> |
ReferenceCountedObject.wrap(V value,
Runnable retainMethod,
Runnable releaseMethod)
Wrap the given value as a
ReferenceCountedObject. |
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.