Skip to content

Instantly share code, notes, and snippets.

@cloudbow
Created July 10, 2014 07:14
Show Gist options
  • Select an option

  • Save cloudbow/92e17c49e538a45c9044 to your computer and use it in GitHub Desktop.

Select an option

Save cloudbow/92e17c49e538a45c9044 to your computer and use it in GitHub Desktop.

Revisions

  1. cloudbow created this gist Jul 10, 2014.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    /**
    *
    */
    package apns.netty.syslog;

    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.scheduling.annotation.Scheduled;
    import org.springframework.stereotype.Component;

    /**
    * @author arung
    */
    @Component
    public class ApnsMessageStatsSysLogger {

    @Autowired
    ApnsSysLogger apnsSysLogger;

    @Scheduled(cron = "${APNSConfig.status.delay}")
    public void statusLog() {
    // ApnsMessageStatsSysLogger.LOGGER.trace("Doing status logs");
    apnsSysLogger.sendStatusSyslog();
    }
    }