Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IBufferQueue

interface IBufferQueue
Extends com.amazon.apmf.IStandard This interface defines a buffer queue

Methods

getId()

com.amazon.apmf.Uuid getId()
Get unique identifier of buffer queue

Returns

com.amazon.apmf.Uuid Uuid of this queue

attachAsWriter()

IBufferQueueWriter* attachAsWriter(com.amazon.apmf.Uuid password, IBufferQueueWriterListener? listener)
API to attach to buffer queue as writer. Clients wanting to attach as writer must have a writerPassword which they should get from queue creators. Also, writer clients must implement IBufferQueueWriterListener interface and pass the object as parameter to this API if they want to have event driven implementation (otherwise they will have to do polling).

Parameters

password
com.amazon.apmf.Uuid — Required Uuid associated with the queue.
listener
IBufferQueueWriterListener? — Optional IBufferQueueWriterListener this is optional parameter if clients dont want to poll

Returns

IBufferQueueWriter* IBufferQueueWriter object

attachAsReader()

IBufferQueueReader* attachAsReader(IBufferQueueReaderListener? listener)
API to attach to buffer queue as reader. CLients wanting to attach as reader must get Uuid from queue creators. Also, reader clients must implement IBufferQueueReaderListener interface and pass the object as parameter to this API if they want to have event driven implementation (otherwise they will have to do polling).

Parameters

listener
IBufferQueueReaderListener? — Optional IBufferQueueReaderListener this is optional parameter if client dont want to poll.

Returns

IBufferQueueReader*
Last modified on October 29, 2026