public class AsynchronousAgentDispatcher extends Object
MonitoringEvents to the local agent asynchronously.
 
 The singleton instance of this class is meant to be used across multiple
 AmazonWebServiceClients that are producing monitoring
 events meant to be sent to a local agent.  Each client that obtains a
 reference to the instance must first call init() before use, and
 release() when it is no longer needed.| Modifier and Type | Method and Description | 
|---|---|
| void | addWriteTask(MonitoringEvent event,
            DatagramChannel channel,
            int maxSize)Add a task to asynchronously write  eventto thechannelif its serialized form does not exceedmaxSize. | 
| static AsynchronousAgentDispatcher | getInstance() | 
| void | init() | 
| void | release() | 
public void addWriteTask(MonitoringEvent event, DatagramChannel channel, int maxSize)
event to the channel
 if its serialized form does not exceed maxSize.event - The event to write.channel - The channel to write to.maxSize - The maximum allowed size for the serialized event.IllegalStateException - If this dispatcher has not yet been
 initialized via init().public void init()
public void release()
public static AsynchronousAgentDispatcher getInstance()
Copyright © 2020. All rights reserved.