public class ExitStatusChannelRequestHandler extends AbstractChannelExitRequestHandler<Integer>
RequestHandler.Result| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
holder, notifierlogBY_NAME_COMPARATOR, NAME_EXTRACTORCHANN2HNDLR| 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, processgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindByName, getNameList, getNames, removeByNamepublic 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
AbstractChannelExitRequestHandlerAbstractChannelExitRequestHandler.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–2017 The Apache Software Foundation. All rights reserved.