Class AeronPublicationMDOAdapter


  • public class AeronPublicationMDOAdapter
    extends java.lang.Object
    Provides MemoryDataOutput API for Aeron's Publication.
    • Constructor Summary

      Constructors 
      Constructor Description
      AeronPublicationMDOAdapter​(io.aeron.ExclusivePublication publication, org.agrona.concurrent.IdleStrategy publicationIdleStrategy)  
    • Constructor Detail

      • AeronPublicationMDOAdapter

        public AeronPublicationMDOAdapter​(io.aeron.ExclusivePublication publication,
                                          org.agrona.concurrent.IdleStrategy publicationIdleStrategy)
    • Method Detail

      • getMemoryDataOutput

        public deltix.util.memory.MemoryDataOutput getMemoryDataOutput()
      • sendBuffer

        public void sendBuffer()
        Sends data from buffer as is. Buffer content must be smaller than Aeron's buffer.
        Throws:
        PublicationClosedException - if publication is already closed
      • sendBufferIfConnected

        public boolean sendBufferIfConnected()
        Sends data from buffer as is. Buffer content must be smaller than Aeron's buffer. If there is no connected clients then just discard data.
        Throws:
        PublicationClosedException - if publication is already closed
      • getAeronSessionId

        public int getAeronSessionId()
      • cancelSend

        public void cancelSend()
      • isClosed

        public boolean isClosed()
      • close

        public void close()