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()
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).IBufferQueueWriter*attachAsWriter(com.amazon.apmf.Uuidpassword,IBufferQueueWriterListener?listener)
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()
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).IBufferQueueReader*attachAsReader(IBufferQueueReaderListener?listener)
Parameters
listener
IBufferQueueReaderListener? — Optional
IBufferQueueReaderListener this is optional parameter
if client dont want to poll.
Returns
IBufferQueueReader*

