void notifyJoinNotificationAction(final JoinNotificationSignal signal) { JoinNotificationAction a; JoinNotificationSignal jns; //todo: NEED to be able to predetermine the number of GMS clients //that would register for join notifications. if (isJoinNotificationAFRegistered()) { if (logger.isLoggable(Level.FINE)){ logger.log(Level.FINE, MessageFormat.format("Sending JoinNotificationSignals to " + "registered Actions, Member {0}...", signal.getMemberToken())); } for (JoinNotificationActionFactory jnaf : joinNotificationAF) { a = (JoinNotificationAction) jnaf.produceAction(); jns = new JoinNotificationSignalImpl(signal); callAction(a, jns); } } else if (System.currentTimeMillis() - startupTime < GROUP_WARMUP_TIME) { // put it back to the queue if it is less than // 30 secs since start time. we give 30 secs for join notif // registrations to happen until which time, the signals are // available in queue. queueSignal(new SignalPacket(signal)); } }
void notifyJoinNotificationAction(final JoinNotificationSignal signal) { JoinNotificationAction a; JoinNotificationSignal jns; //todo: NEED to be able to predetermine the number of GMS clients //that would register for join notifications. if (isJoinNotificationAFRegistered()) { if (logger.isLoggable(Level.FINE)){ logger.log(Level.FINE, MessageFormat.format("Sending JoinNotificationSignals to " + "registered Actions, Member {0}...", signal.getMemberToken())); } for (JoinNotificationActionFactory jnaf : joinNotificationAF) { a = (JoinNotificationAction) jnaf.produceAction(); jns = new JoinNotificationSignalImpl(signal); callAction(a, jns); } } else if (System.currentTimeMillis() - startupTime < GROUP_WARMUP_TIME) { // put it back to the queue if it is less than // 30 secs since start time. we give 30 secs for join notif // registrations to happen until which time, the signals are // available in queue. queueSignal(new SignalPacket(signal)); } }
JoinNotificationSignalImpl ( final JoinNotificationSignal signal ) { this(signal.getMemberToken(), signal.getCurrentCoreMembers(), signal.getAllCurrentMembers(), signal.getGroupName(), signal.getStartTime(), signal.getEventSubType(), signal.getRejoinSubevent()); }
JoinNotificationSignalImpl ( final JoinNotificationSignal signal ) { this(signal.getMemberToken(), signal.getCurrentCoreMembers(), signal.getAllCurrentMembers(), signal.getGroupName(), signal.getStartTime(), signal.getEventSubType(), signal.getRejoinSubevent()); }