public interface BytesContext
extends net.openhft.chronicle.core.io.Closeable
Bytes buffer and optional key for a unit of work. Implementations
may support rollback of writes when the context is closed.| Modifier and Type | Method and Description |
|---|---|
Bytes<?> |
bytes()
Returns the buffer associated with this context.
|
default boolean |
isClosed()
Indicates whether this context has been closed.
|
int |
key()
Provides a context-dependent key, such as a message type.
|
default void |
rollbackOnClose()
Marks this context to roll back any writes when
Closeable.close() is called. |
Bytes<?> bytes()
int key()
default boolean isClosed()
UnsupportedOperationException and should be overridden.isClosed in interface net.openhft.chronicle.core.io.QueryCloseabledefault void rollbackOnClose()
Closeable.close() is called.Copyright © 2026 Chronicle Software Ltd. All rights reserved.