Examples of timeToLive()


Examples of com.google.android.gcm.server.Message.Builder.timeToLive()

        gcmBuilder.addData("badge", "" + pushMessage.getBadge());

        // if present, apply the time-to-live metadata:
        int ttl = pushMessage.getTimeToLive();
        if (ttl != -1) {
            gcmBuilder.timeToLive(ttl);
        }

        // iterate over the missing keys:
        Set<String> keys = pushMessage.getData().keySet();
        for (String key : keys) {
View Full Code Here

Examples of com.google.android.gcm.server.Message.Builder.timeToLive()

        gcmBuilder.addData("badge", "" + message.getBadge());

        // if present, apply the time-to-live metadata:
        int ttl = pushMessage.getConfig().getTimeToLive();
        if (ttl != -1) {
            gcmBuilder.timeToLive(ttl);
        }

        // iterate over the missing keys:
        Set<String> keys = message.getUserData().keySet();
        for (String key : keys) {
View Full Code Here

Examples of com.google.android.gcm.server.Message.Builder.timeToLive()

        gcmBuilder.addData("badge", "" + pushMessage.getBadge());

        // if present, apply the time-to-live metadata:
        int ttl = pushMessage.getTimeToLive();
        if (ttl != -1) {
            gcmBuilder.timeToLive(ttl);
        }

        // iterate over the missing keys:
        Set<String> keys = pushMessage.getData().keySet();
        for (String key : keys) {
View Full Code Here

Examples of com.google.android.gcm.server.Message.Builder.timeToLive()

        gcmBuilder.addData("badge", "" + pushMessage.getBadge());

        // if present, apply the time-to-live metadata:
        int ttl = pushMessage.getTimeToLive();
        if (ttl != -1) {
            gcmBuilder.timeToLive(ttl);
        }

        // iterate over the missing keys:
        Set<String> keys = pushMessage.getData().keySet();
        for (String key : keys) {
View Full Code Here

Examples of org.jboss.ejb3.annotation.MessageProperties.timeToLive()

      MethodInvocation mi = (MethodInvocation) invocation;
      MessageProperties props = (MessageProperties)methodMap.get(new Long(mi.getMethodHash()));
      if (props != null)
      {
         int del = (props.delivery() == DeliveryMode.PERSISTENT) ? javax.jms.DeliveryMode.PERSISTENT : javax.jms.DeliveryMode.NON_PERSISTENT;
         msgProducer.send(msg, del, props.priority(), props.timeToLive());
      }
      else
      {
         msgProducer.send(msg);
      }
View Full Code Here

Examples of org.jboss.ejb3.annotation.MessageProperties.timeToLive()

/* 270 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 271 */     MessageProperties props = (MessageProperties)this.methodMap.get(new Long(mi.getMethodHash()));
/* 272 */     if (props != null)
/*     */     {
/* 274 */       int del = props.delivery() == DeliveryMode.PERSISTENT ? 2 : 1;
/* 275 */       this.msgProducer.send(msg, del, props.priority(), props.timeToLive());
/*     */     }
/*     */     else
/*     */     {
/* 279 */       this.msgProducer.send(msg);
/*     */     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.