public class PutResult extends Object implements AutoCloseable
This object owns an ArrowBuf and should be closed when you are done with it.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static PutResult |
empty()
Create an empty PutResult.
|
ArrowBuf |
getApplicationMetadata()
Get the metadata in this message.
|
static PutResult |
metadata(ArrowBuf metadata)
Create a PutResult with application-specific metadata.
|
public static PutResult metadata(ArrowBuf metadata)
This method assumes ownership of the ArrowBuf.
public static PutResult empty()
public ArrowBuf getApplicationMetadata()
Ownership of the ArrowBuf is retained by this object. Call ReferenceManager.retain() to preserve
a reference.
public void close()
close in interface AutoCloseableCopyright © 2024 The Apache Software Foundation. All rights reserved.