public class GlobalConcurrencyLimitCommandListener extends Object implements CommandListener
ServiceContainer's CommandPreprocessor and will
immediately drop the command if the global concurrent limit has been exceeded. In other words, if we've received too
many incoming commands at the same time, we'll start dropping additional incoming commands under the command
processor can catch up.| Modifier and Type | Field and Description |
|---|---|
static String |
CONCURRENCY_LIMIT_NAME |
| Constructor and Description |
|---|
GlobalConcurrencyLimitCommandListener(ServiceContainer serviceContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
processedCommand(Command command,
CommandResponse response)
This is called for every command that finished which includes all commands that succeeded, failed or was not
permitted due to
receivedCommand(Command) throwing a NotPermittedException. |
void |
receivedCommand(Command command)
This will be called for every command coming in.
|
public static final String CONCURRENCY_LIMIT_NAME
public GlobalConcurrencyLimitCommandListener(ServiceContainer serviceContainer)
public void receivedCommand(Command command)
NotPermittedException.receivedCommand in interface CommandListenercommand - the new command that was receivedCommandListener.receivedCommand(Command)public void processedCommand(Command command, CommandResponse response)
receivedCommand(Command) throwing a NotPermittedException.processedCommand in interface CommandListenercommand - the command that was received and processedresponse - the results of the command - this is being sent back to the clientCommandListener.processedCommand(Command, CommandResponse)Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.