/** * @return the targets configured for this connection or an empty set if no targets were configured. */ protected final Set<Target> getTargetsOrEmptySet() { return connection().getTargets(); }
@Nullable final MappingContext mappingContext) { if (!getMessageMappingProcessorActor().isPresent()) { final Connection connection = connection();
/** * @return whether this client is consuming at all */ protected final boolean isConsuming() { return !connection().getSources().isEmpty(); }
@Nullable final MappingContext mappingContext) { if (!getMessageMappingProcessorActor().isPresent()) { final Connection connection = connection();
/** * @return the sources configured for this connection or an empty set if no sources were configured. */ protected final List<Source> getSourcesOrEmptySet() { return connection().getSources(); }
/** * @return the targets configured for this connection or an empty set if no targets were configured. */ protected final Set<Target> getTargetsOrEmptySet() { return connection().getTargets(); }
/** * @return whether this client is publishing at all */ protected final boolean isPublishing() { return !connection().getTargets().isEmpty(); }
/** * @return the sources configured for this connection or an empty set if no sources were configured. */ protected final List<Source> getSourcesOrEmptySet() { return connection().getSources(); }
/** * @return whether this client is publishing at all */ protected final boolean isPublishing() { return !connection().getTargets().isEmpty(); }
/** * @return whether this client is consuming at all */ protected final boolean isConsuming() { return !connection().getSources().isEmpty(); }