static boolean addBlackListedDestination(AbstractInvocationContext context, URI destination) { Assert.checkNotNullParam("context", context); if (destination != null) { Set<URI> set = context.getAttachment(BL_KEY); if (set == null) { final Set<URI> appearing = context.putAttachmentIfAbsent(BL_KEY, set = new HashSet<>()); if (appearing != null) { set = appearing; } } Logs.INVOCATION.tracef("Blacklisting destination (locator = %s, weak affinity = %s, missing target = %s)", context.getLocator(), context.getWeakAffinity(), destination); return set.add(destination); } else { return false; } }
static boolean addBlackListedDestination(AbstractInvocationContext context, URI destination) { Assert.checkNotNullParam("context", context); if (destination != null) { Set<URI> set = context.getAttachment(BL_KEY); if (set == null) { final Set<URI> appearing = context.putAttachmentIfAbsent(BL_KEY, set = new HashSet<>()); if (appearing != null) { set = appearing; } } Logs.INVOCATION.tracef("Blacklisting destination (locator = %s, weak affinity = %s, missing target = %s)", context.getLocator(), context.getWeakAffinity(), destination); return set.add(destination); } else { return false; } }
static boolean addBlackListedDestination(AbstractInvocationContext context, URI destination) { Assert.checkNotNullParam("context", context); if (destination != null) { Set<URI> set = context.getAttachment(BL_KEY); if (set == null) { final Set<URI> appearing = context.putAttachmentIfAbsent(BL_KEY, set = new HashSet<>()); if (appearing != null) { set = appearing; } } Logs.INVOCATION.tracef("Blacklisting destination (locator = %s, weak affinity = %s, missing target = %s)", context.getLocator(), context.getWeakAffinity(), destination); return set.add(destination); } else { return false; } }