public boolean sendSample ( SampleMessage sampleMessage ) { if ( ! this . canSendSamples ) { log . warn ( "Cannot send samples." ) ; return false ; } if ( this . session . getScheduledWriteMessages ( ) > this . maxOutstandingSamples ) { log . warn ( "Buffer full, cannot send sample." ) ; return false ; } this . session . write ( sampleMessage ) ; return true ; }
Sends a sample to the aggregator .