在此输入代码...
ApnsClient apnsClient = new ApnsClientBuilder()
.setClientCredentials(file, password)
.setConcurrentConnections(8)
.setEventLoopGroup(new NioEventLoopGroup(4))
.setApnsServer(host)
.build();
....
....
ApnsPushNotification pushNotification = new SimpleApnsPushNotification(token, topic, message, new Date(System.currentTimeMillis() + INVALIDATION_TIME));
apnsClient.sendNotification(pushNotification);