public class ExitSignalChannelRequestHandler extends AbstractChannelExitRequestHandler<String>
NamedResource.Utils
RequestHandler.Result
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
holder, notifier
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
CHANN2HNDLR
Constructor and Description |
---|
ExitSignalChannelRequestHandler(AtomicReference<String> holder,
EventNotifier<? super String> notifier) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
protected String |
processRequestValue(Channel channel,
String signalName,
boolean coreDumped,
String message,
String lang) |
protected String |
processRequestValue(Channel channel,
String request,
Buffer buffer)
Invoked by default from
AbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer) when
a request matching the handler's name is received |
getEvent, notifyStateChanged, process
public static final String NAME
public ExitSignalChannelRequestHandler(AtomicReference<String> holder, EventNotifier<? super String> notifier)
public final String getName()
protected String processRequestValue(Channel channel, String request, Buffer buffer) throws Exception
AbstractChannelExitRequestHandler
AbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)
when
a request matching the handler's name is receivedprocessRequestValue
in class AbstractChannelExitRequestHandler<String>
channel
- The Channel
through which the request was receivedrequest
- The received request - Note: guaranteed to match the
handler's name if invoked from AbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)
buffer
- The received Buffer
for extracting the datanull
then request is ignored and
Unsupported
is returnedException
- If failed to process the received request bufferCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.