public class ExitStatusChannelRequestHandler extends AbstractChannelExitRequestHandler<Integer>
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 |
---|
ExitStatusChannelRequestHandler(AtomicReference<Integer> holder,
EventNotifier<? super String> notifier) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
protected Integer |
processRequestValue(Channel channel,
int exitStatus) |
protected Integer |
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 ExitStatusChannelRequestHandler(AtomicReference<Integer> holder, EventNotifier<? super String> notifier)
public final String getName()
protected Integer 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<Integer>
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.