private void performCloseTasks() { if(_closed.compareAndSet(false, true)) { List<Action<? super Session_1_0>> taskList = new ArrayList<>(_taskList); _taskList.clear(); for(Action<? super Session_1_0> task : taskList) { task.performAction(this); } getAMQPConnection().getEventLogger().message(_logSubject,ChannelMessages.CLOSE()); } }
private void doBlock() { if(_blockingEntities.add(this)) { messageWithSubject(ChannelMessages.FLOW_ENFORCED("** All Queues **")); for (LinkEndpoint<? extends BaseSource, ? extends BaseTarget> linkEndpoint : _endpointToOutputHandle.keySet()) { if (linkEndpoint instanceof StandardReceivingLinkEndpoint) { linkEndpoint.setStopped(true); } } } }
@Override public synchronized void unblock() { if(_blockingEntities.remove(this)) { if(_blockingEntities.isEmpty() && _blocking.compareAndSet(true,false)) { messageWithSubject(ChannelMessages.FLOW_REMOVED()); getConnection().notifyWork(this); } } }
getEventLogger().message(ChannelMessages.DISCARDMSG_NOROUTE(msg.getMessageNumber(), alternateBindingDestination.getName())); getEventLogger().message(ChannelMessages.DISCARDMSG_NOALTEXCH(msg.getMessageNumber(), queue.getName(), msg.getInitialRoutingAddress()));
ChannelMessages.CLOSE() : ChannelMessages.CLOSE_FORCED(cause, message); messageWithSubject(operationalLogMessage);
@Override public Object run() { message(ChannelMessages.CREATE()); return null; } }),_accessControllerContext);
@Override public void performAction(final MessageInstance requeueEntry) { messageWithSubject(ChannelMessages.DEADLETTERMSG(msg.getMessageNumber(), requeueEntry.getOwningResource() .getName())); } }, null, null);
message(ChannelMessages.FLOW_CONTROL_IGNORED()); closeChannel(ErrorCodes.MESSAGE_TOO_LARGE, "Channel flow control was requested, but not enforced by sender");
public void close(int cause, String message) { _forcedCloseLogMessage.compareAndSet(null, ChannelMessages.CLOSE_FORCED(cause, message)); close(); }
messageWithSubject(ChannelMessages.DISCARDMSG_NOALTEXCH(msg.getMessageNumber(), queue.getName(), msg.getInitialRoutingAddress())); messageWithSubject(ChannelMessages.DISCARDMSG_NOROUTE(msg.getMessageNumber(), alternateBindingDestination.getName()));
if (operationalLoggingMessage == null && getConnection().getConnectionCloseMessage() != null) operationalLoggingMessage = ChannelMessages.CLOSE_FORCED(getConnection().getConnectionCloseCode(), getConnection().getConnectionCloseMessage()); operationalLoggingMessage = ChannelMessages.CLOSE();
protected void setState(final State state) { if(runningAsSubject()) { synchronized (commandsLock) { this.state = state; commandsLock.notifyAll(); } if (state == State.OPEN) { getAMQPConnection().getEventLogger().message(ChannelMessages.CREATE()); } } else { runAsSubject(new PrivilegedAction<Void>() { @Override public Void run() { setState(state); return null; } }); } }
@Override public void performAction(final MessageInstance requeueEntry) { eventLogger.message(logSubject, ChannelMessages.DEADLETTERMSG(message.getMessageNumber(), requeueEntry.getOwningResource().getName())); } }, null, null);
getEventLogger(ssn).message(ChannelMessages.FLOW_CONTROL_IGNORED());
ChannelMessages.DISCARDMSG_NOALTEXCH(message.getMessageNumber(), queue.getName(), message.getInitialRoutingAddress())); ChannelMessages.DISCARDMSG_NOROUTE(message.getMessageNumber(), alternateBindingDestination.getName()));
@Override public synchronized void block() { if(_blockingEntities.add(this)) { if(_blocking.compareAndSet(false,true)) { messageWithSubject(ChannelMessages.FLOW_ENFORCED("** All Queues **")); getConnection().notifyWork(this); } } }
@Override public synchronized void unblock(Queue<?> queue) { if(_blockingEntities.remove(queue)) { if(_blockingEntities.isEmpty() && _blocking.compareAndSet(true,false) && !isClosing()) { messageWithSubject(ChannelMessages.FLOW_REMOVED()); getConnection().notifyWork(this); } } }
@Override public synchronized void block(Queue<?> queue) { if(_blockingEntities.add(queue)) { if(_blocking.compareAndSet(false,true)) { messageWithSubject(ChannelMessages.FLOW_ENFORCED(queue.getName())); getConnection().notifyWork(this); } } }
private void doUnblock() { if(_blockingEntities.remove(this)) { if(_blockingEntities.isEmpty()) { messageWithSubject(ChannelMessages.FLOW_REMOVED()); } for (LinkEndpoint<? extends BaseSource, ? extends BaseTarget> linkEndpoint : _endpointToOutputHandle.keySet()) { if (linkEndpoint instanceof StandardReceivingLinkEndpoint && !_blockingEntities.contains(((StandardReceivingLinkEndpoint) linkEndpoint).getReceivingDestination())) { linkEndpoint.setStopped(false); } } } }
private void doBlock(final Queue<?> queue) { if(_blockingEntities.add(queue)) { messageWithSubject(ChannelMessages.FLOW_ENFORCED(queue.getName())); for (LinkEndpoint<? extends BaseSource, ? extends BaseTarget> linkEndpoint : _endpointToOutputHandle.keySet()) { if (linkEndpoint instanceof StandardReceivingLinkEndpoint && isQueueDestinationForLink(queue, ((StandardReceivingLinkEndpoint) linkEndpoint).getReceivingDestination())) { linkEndpoint.setStopped(true); } } } }