/** * Broadcast this subscribe/unsubscribe message to the cluster so everyone is aware * of this server's interest in messages matching this selector and subtopic. */ protected void sendSubscriptionToPeer(boolean subscribe, String selector, String subtopic) { if (Log.isDebug()) Log.getLogger(MessageService.LOG_CATEGORY).debug("Sending subscription to peers for subscribe? " + subscribe + " selector: " + selector + " subtopic: " + subtopic); ((MessageService)destination.getService()).sendSubscribeFromPeer(destination.getId(), subscribe ? Boolean.TRUE : Boolean.FALSE, selector, subtopic); }
/** * Broadcast this subscribe/unsubscribe message to the cluster so everyone is aware * of this server's interest in messages matching this selector and subtopic. * * @param subscribe are we subscribing? * @param selector the selector * @param subtopic the subtopic */ protected void sendSubscriptionToPeer(boolean subscribe, String selector, String subtopic) { if (Log.isDebug()) Log.getLogger(MessageService.LOG_CATEGORY).debug("Sending subscription to peers for subscribe? " + subscribe + " selector: " + selector + " subtopic: " + subtopic); ((MessageService)destination.getService()).sendSubscribeFromPeer(destination.getId(), subscribe, selector, subtopic); }
/** * Broadcast this subscribe/unsubscribe message to the cluster so everyone is aware * of this server's interest in messages matching this selector and subtopic. * * @param subscribe are we subscribing? * @param selector the selector * @param subtopic the subtopic */ protected void sendSubscriptionToPeer(boolean subscribe, String selector, String subtopic) { if (Log.isDebug()) Log.getLogger(MessageService.LOG_CATEGORY).debug("Sending subscription to peers for subscribe? " + subscribe + " selector: " + selector + " subtopic: " + subtopic); ((MessageService)destination.getService()).sendSubscribeFromPeer(destination.getId(), subscribe, selector, subtopic); }