@Test public void testPublishToAllExceptList() { List<String> value = Arrays.asList("a", "b", "c"); this.wampPublisher.publishToAllExcept(Collections.singleton(123L), "topic2", value); Mockito.verify(this.clientOutboundChannel, Mockito.times(1)) .send(this.messageCaptor.capture()); PublishMessage publishMessage = this.messageCaptor.getValue(); assertPublishMessage(publishMessage, "topic2", value, null, Collections.singleton(123L)); }
public <T> void publishToAllExcept(Collection<Long> excludeWampSessionIds, String topic, @Nullable T... arguments) { publish(publishMessageBuilder(topic).arguments(CollectionHelper.toList(arguments)) .exclude(CollectionHelper.toSet(excludeWampSessionIds)).build()); }
WampPublisher { public <T> void publishToAllExcept(Collection<Long> excludeWampSessionIds, String topic, @Nullable T... arguments) { publish(publishMessageBuilder(topic).arguments(CollectionHelper.toList(arguments)) .exclude(CollectionHelper.toSet(excludeWampSessionIds)).build()); } }
WampPublisher { public <T> void publishToAllExcept(Collection<Long> excludeWampSessionIds, String topic, @Nullable T... arguments) { publish(publishMessageBuilder(topic).arguments(CollectionHelper.toList(arguments)) .exclude(CollectionHelper.toSet(excludeWampSessionIds)).build()); } WampPublisher(MessageChannel clientInboundChannel); }
WampPublisher { public <T> void publishToAllExcept(Collection<Long> excludeWampSessionIds, String topic, @Nullable T... arguments) { publish(publishMessageBuilder(topic).arguments(CollectionHelper.toList(arguments)) .exclude(CollectionHelper.toSet(excludeWampSessionIds)).build()); } WampPublisher(MessageChannel clientInboundChannel); void publish(PublishMessage publishMessage); void publishToAll(String topic, @Nullable T... arguments); void publishToAll(String topic, @Nullable Collection<T> arguments); void publishToAll(String topic, @Nullable Map<String, T> arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable T... arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable Collection<T> arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable Map<String, T> arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable T... arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable Collection<T> arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable Map<String, T> arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable T... arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable Collection<T> arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable Map<String, T> arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable T... arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable Collection<T> arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable Map<String, T> arguments); Builder publishMessageBuilder(String topic); }
WampPublisher { public <T> void publishToAllExcept(Collection<Long> excludeWampSessionIds, String topic, @Nullable T... arguments) { publish(publishMessageBuilder(topic).arguments(CollectionHelper.toList(arguments)) .exclude(CollectionHelper.toSet(excludeWampSessionIds)).build()); } WampPublisher(MessageChannel clientInboundChannel); void publish(PublishMessage publishMessage); void publishToAll(String topic, @Nullable T... arguments); void publishToAll(String topic, @Nullable Collection<T> arguments); void publishToAll(String topic, @Nullable Map<String, T> arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable T... arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable Collection<T> arguments); void publishTo(Collection<Long> eligibleWampSessionIds, String topic,
			@Nullable Map<String, T> arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable T... arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable Collection<T> arguments); void publishTo(long eligibleWampSessionId, String topic,
			@Nullable Map<String, T> arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable T... arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable Collection<T> arguments); void publishToAllExcept(Collection<Long> excludeWampSessionIds,
			String topic, @Nullable Map<String, T> arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable T... arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable Collection<T> arguments); void publishToAllExcept(long excludeWampSessionId, String topic,
			@Nullable Map<String, T> arguments); Builder publishMessageBuilder(String topic);  }