Uses of Interface
org.agrona.DirectBuffer
Packages that use DirectBuffer
Package
Description
Data structures and utilities useful for building high-performance Java applications.
Java agent for instrumenting
DirectBuffer implementations to verify aligned access.Concurrent data structures and utilities that support both on and off Java heap usage.
Data structure for broadcasting messages from one source to many receivers via shared memory.
IPC ring buffers for messaging via shared memory.
Counters for indicating status and telemetry which can be put in shared memory for live inspection.
Bridging classes for allowing direct buffers implementations of
DirectBuffer and
MutableDirectBuffer to be used with Java IO streams.Common interfaces which can apply to SBE messages to support abstract usage.
-
Uses of DirectBuffer in org.agrona
Subinterfaces of DirectBuffer in org.agronaModifier and TypeInterfaceDescriptioninterfaceAbstraction over a range of buffer types that allows fields to be written in native typed fashion.Classes in org.agrona that implement DirectBufferModifier and TypeClassDescriptionclassCommon base class for implementingMutableDirectBufferinterface.classExpandableMutableDirectBufferthat is backed by an array.classExpandableMutableDirectBufferthat is backed by a directByteBuffer.Subinterfaces with type arguments of type DirectBuffer in org.agronaModifier and TypeInterfaceDescriptioninterfaceAbstraction over a range of buffer types that allows fields to be read in native typed fashion.Fields in org.agrona declared as DirectBufferMethods in org.agrona that return DirectBufferModifier and TypeMethodDescriptionAsciiSequenceView.buffer()Gets the underlying buffer which this is a view over.Methods in org.agrona with parameters of type DirectBufferModifier and TypeMethodDescriptionbooleanExpandableRingBuffer.append(DirectBuffer srcBuffer, int srcOffset, int srcLength) Append a message into the ring buffer, expanding the buffer if required.static voidPrintBufferUtil.appendPrettyHexDump(StringBuilder dump, DirectBuffer buffer) Appends the prettified multi-line hexadecimal dump of the specifiedDirectBufferto the specifiedStringBuilderthat is easy to read by humans.static voidPrintBufferUtil.appendPrettyHexDump(StringBuilder dump, DirectBuffer buffer, int offset, int length) Appends the prettified multi-line hexadecimal dump of the specifiedDirectBufferto the specifiedStringBuilderthat is easy to read by humans, starting at the givenoffsetusing the givenlength.(package private) static voidPrintBufferUtil.HexUtil.appendPrettyHexDump(StringBuilder dump, DirectBuffer buffer, int offset, int length) intAbstractMutableDirectBuffer.compareTo(DirectBuffer that) static voidBufferUtil.free(DirectBuffer buffer) Free the underlying directByteBufferby invokingCleaneron it.(package private) static shortPrintBufferUtil.HexUtil.getUnsignedByte(DirectBuffer buffer, int index) Gets an unsigned byte at the specified absoluteindexin a buffer.static StringPrintBufferUtil.hexDump(DirectBuffer buffer) Returns a hex dump of the specified buffer's readable bytes.static StringPrintBufferUtil.hexDump(DirectBuffer buffer, int fromIndex, int length) Returns a hex dump of the specified buffer's subregion.(package private) static StringPrintBufferUtil.HexUtil.hexDump(DirectBuffer buffer, int fromIndex, int length) (package private) static StringPrintBufferUtil.HexUtil.prettyHexDump(DirectBuffer buffer, int offset, int length) static StringPrintBufferUtil.prettyHexDump(DirectBuffer buffer) Returns a hexadecimal dump of the specifiedDirectBufferthat is easy to read by humans.static StringPrintBufferUtil.prettyHexDump(DirectBuffer buffer, int offset, int length) Returns a hexadecimal dump of the specifiedDirectBufferthat is easy to read by humans, starting at the givenoffsetusing the givenlength.voidAbstractMutableDirectBuffer.putBytes(int index, DirectBuffer srcBuffer, int srcIndex, int length) Put bytes from a sourceDirectBufferinto thisMutableDirectBufferat given indices.voidMutableDirectBuffer.putBytes(int index, DirectBuffer srcBuffer, int srcIndex, int length) Put bytes from a sourceDirectBufferinto thisMutableDirectBufferat given indices.AsciiSequenceView.wrap(DirectBuffer buffer, int offset, int length) Wrap a range of an existing buffer containing an ASCII sequence.voidDirectBuffer.wrap(DirectBuffer buffer) Attach a view to an existingDirectBuffer.voidDirectBuffer.wrap(DirectBuffer buffer, int offset, int length) Attach a view to aDirectBufferfor providing direct access.voidExpandableArrayBuffer.wrap(DirectBuffer buffer) Attach a view to an existingDirectBuffer.voidExpandableArrayBuffer.wrap(DirectBuffer buffer, int offset, int length) Attach a view to aDirectBufferfor providing direct access.voidExpandableDirectByteBuffer.wrap(DirectBuffer buffer) Attach a view to an existingDirectBuffer.voidExpandableDirectByteBuffer.wrap(DirectBuffer buffer, int offset, int length) Attach a view to aDirectBufferfor providing direct access.private voidExpandableRingBuffer.writeMessage(DirectBuffer srcBuffer, int srcOffset, int srcLength) Constructors in org.agrona with parameters of type DirectBufferModifierConstructorDescriptionAsciiSequenceView(DirectBuffer buffer, int offset, int length) Construct a view over aDirectBufferfrom an offset for a given length. -
Uses of DirectBuffer in org.agrona.agent
Methods in org.agrona.agent with parameters of type DirectBufferModifier and TypeMethodDescriptionstatic voidBufferAlignmentInterceptor.CharVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of thechartypes.static voidBufferAlignmentInterceptor.DoubleVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of thedoubletypes.static voidBufferAlignmentInterceptor.FloatVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of thefloattypes.static voidBufferAlignmentInterceptor.IntVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of theinttypes.static voidBufferAlignmentInterceptor.LongVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of thelongtypes.static voidBufferAlignmentInterceptor.ShortVerifier.verifyAlignment(int index, DirectBuffer buffer) Verify alignment of theshorttypes. -
Uses of DirectBuffer in org.agrona.concurrent
Subinterfaces of DirectBuffer in org.agrona.concurrentModifier and TypeInterfaceDescriptioninterfaceAbstraction over a range of buffer types that allows type to be accessed with various memory ordering semantics.Classes in org.agrona.concurrent that implement DirectBufferModifier and TypeClassDescriptionclassSupports regular, byte ordered, and atomic (memory ordered) access to an underlying buffer.Methods in org.agrona.concurrent with parameters of type DirectBufferModifier and TypeMethodDescriptionvoidUnsafeBuffer.wrap(DirectBuffer buffer) Attach a view to an existingDirectBuffer.voidUnsafeBuffer.wrap(DirectBuffer buffer, int offset, int length) Attach a view to aDirectBufferfor providing direct access.Constructors in org.agrona.concurrent with parameters of type DirectBufferModifierConstructorDescriptionUnsafeBuffer(DirectBuffer buffer) Attach a view to an existingDirectBuffer.UnsafeBuffer(DirectBuffer buffer, int offset, int length) Attach a view to an existingDirectBuffer. -
Uses of DirectBuffer in org.agrona.concurrent.broadcast
Methods in org.agrona.concurrent.broadcast with parameters of type DirectBufferModifier and TypeMethodDescriptionvoidBroadcastTransmitter.transmit(int msgTypeId, DirectBuffer srcBuffer, int srcIndex, int length) Transmit a message toBroadcastReceivers via the broadcast buffer. -
Uses of DirectBuffer in org.agrona.concurrent.ringbuffer
Methods in org.agrona.concurrent.ringbuffer with parameters of type DirectBufferModifier and TypeMethodDescriptionbooleanManyToOneRingBuffer.write(int msgTypeId, DirectBuffer srcBuffer, int offset, int length) Non-blocking write of a message to an underlying ring-buffer.booleanOneToOneRingBuffer.write(int msgTypeId, DirectBuffer srcBuffer, int offset, int length) Non-blocking write of a message to an underlying ring-buffer.booleanRingBuffer.write(int msgTypeId, DirectBuffer srcBuffer, int offset, int length) Non-blocking write of a message to an underlying ring-buffer. -
Uses of DirectBuffer in org.agrona.concurrent.status
Methods in org.agrona.concurrent.status with parameters of type DirectBufferModifier and TypeMethodDescriptionvoidCountersReader.MetaData.accept(int counterId, int typeId, DirectBuffer keyBuffer, String label) Accept a metadata record.intConcurrentCountersManager.allocate(int typeId, DirectBuffer keyBuffer, int keyOffset, int keyLength, DirectBuffer labelBuffer, int labelOffset, int labelLength) Allocate a counter with the minimum of allocation by allowing the label a key to be provided and copied.intCountersManager.allocate(int typeId, DirectBuffer keyBuffer, int keyOffset, int keyLength, DirectBuffer labelBuffer, int labelOffset, int labelLength) Allocate a counter with the minimum of allocation by allowing the label a key to be provided and copied.CountersManager.newCounter(int typeId, DirectBuffer keyBuffer, int keyOffset, int keyLength, DirectBuffer labelBuffer, int labelOffset, int labelLength) Allocate a counter record and wrap it with a newAtomicCounterfor use.voidConcurrentCountersManager.setCounterKey(int counterId, DirectBuffer keyBuffer, int offset, int length) Set anAtomicCounterkey by on counter id, copying the key metadata from the supplied buffer.voidCountersManager.setCounterKey(int counterId, DirectBuffer keyBuffer, int offset, int length) Set anAtomicCounterkey by on counter id, copying the key metadata from the supplied buffer.voidAtomicCounter.updateKey(DirectBuffer keyBuffer, int offset, int length) Update the key for a counter constructed with aCountersManager. -
Uses of DirectBuffer in org.agrona.io
Fields in org.agrona.io declared as DirectBufferModifier and TypeFieldDescriptionprivate DirectBufferDirectBufferDataInput.bufferprivate DirectBufferDirectBufferInputStream.bufferMethods in org.agrona.io that return DirectBufferModifier and TypeMethodDescriptionDirectBufferInputStream.buffer()The underlying buffer being wrapped.Methods in org.agrona.io with parameters of type DirectBufferModifier and TypeMethodDescriptionvoidDirectBufferDataInput.wrap(DirectBuffer buffer) Wrap givenDirectBuffer.voidDirectBufferDataInput.wrap(DirectBuffer buffer, int offset, int length) Wrap givenDirectBuffer.voidDirectBufferInputStream.wrap(DirectBuffer buffer) Wrap givenDirectBuffer.voidDirectBufferInputStream.wrap(DirectBuffer buffer, int offset, int length) Wrap givenDirectBuffer.Constructors in org.agrona.io with parameters of type DirectBufferModifierConstructorDescriptionDirectBufferDataInput(DirectBuffer buffer) Wrap givenDirectBuffer.DirectBufferDataInput(DirectBuffer buffer, int offset, int length) Wrap givenDirectBuffer.DirectBufferInputStream(DirectBuffer buffer) Wrap givenDirectBuffer.DirectBufferInputStream(DirectBuffer buffer, int offset, int length) Wrap givenDirectBuffer. -
Uses of DirectBuffer in org.agrona.sbe
Methods in org.agrona.sbe that return DirectBufferMethods in org.agrona.sbe with parameters of type DirectBufferModifier and TypeMethodDescriptionCompositeDecoderFlyweight.wrap(DirectBuffer buffer, int offset) Wrap a buffer for decoding at a given offset.MessageDecoderFlyweight.wrap(DirectBuffer buffer, int offset, int actingBlockLength, int actingVersion) Wrap a buffer containing an encoded message for decoding.