public void poll(final SnmpUdpStatisticsHandler snmpUdpStatisticsHandler){
  this.statisticsHandler=snmpUdpStatisticsHandler;
  try {
    fileLoader.load();
    final ByteBuffer buffer=fileLoader.getBuffer();
    lineParser.reset();
    lineParser.handleToken(buffer,buffer.position(),buffer.limit());
  }
  finally {
    this.statisticsHandler=null;
  }
}

public void poll ( final SnmpUdpStatisticsHandler snmpUdpStatisticsHandler ) { this . statisticsHandler = snmpUdpStatisticsHandler ; try { fileLoader . load ( ) ; final ByteBuffer buffer = fileLoader . getBuffer ( ) ; lineParser . reset ( ) ; lineParser . handleToken ( buffer , buffer . position ( ) , buffer . limit ( ) ) ; } finally { this . statisticsHandler = null ; } }
read from monitored file , report any changed values for udp statistics . not thread - safe , only call from a single thread .
