public abstract class AbstractPollingTransportListener<T extends AbstractPollTableEntry> extends AbstractTransportListenerEx<T>
cfgCtx, config, isNonBlocking, log, metrics, state, useAxis2ThreadPool, workerPool| Constructor and Description |
|---|
AbstractPollingTransportListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doInit()
Initialize the transport.
|
void |
maintenenceShutdown(long millis)
Stop processing new messages, and wait the specified maximum time for in-flight
requests to complete before a controlled shutdown for maintenence
|
protected void |
onPollCompletion(T entry) |
void |
pause()
Pause the listener - Stop accepting/processing new messages, but continues processing existing
messages until they complete.
|
protected abstract void |
poll(T entry) |
protected void |
processFailure(String msg,
Exception e,
T entry)
method to log a failure to the log file and to update the last poll status and time
|
void |
resume()
Resume the lister - Brings the lister into active mode back from a paused state
|
protected void |
startEndpoint(T endpoint) |
protected void |
stopEndpoint(T endpoint) |
createEndpoint, getEndpoints, getEPRsForService, init, start, startListeningForService, stop, stopListeningForServicecreateMessageContext, disableTransportForService, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getConfigurationContext, getEPRForService, getEPRsForService, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsCollector, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getSessionContext, getTimeoutsReceiving, getTimeoutsSending, getTransportInDescription, getTransportName, handleException, handleIncomingMessage, logException, resetStatisticsprotected void doInit()
throws org.apache.axis2.AxisFault
AbstractTransportListenerExAbstractTransportListener and before the first endpoint is created, i.e. before the
first call to AbstractTransportListenerEx.createEndpoint().doInit in class AbstractTransportListenerEx<T extends AbstractPollTableEntry>org.apache.axis2.AxisFaultpublic void destroy()
destroy in interface org.apache.axis2.transport.TransportListenerdestroy in class AbstractTransportListenerprotected void startEndpoint(T endpoint) throws org.apache.axis2.AxisFault
startEndpoint in class AbstractTransportListenerEx<T extends AbstractPollTableEntry>org.apache.axis2.AxisFaultprotected void stopEndpoint(T endpoint)
stopEndpoint in class AbstractTransportListenerEx<T extends AbstractPollTableEntry>protected abstract void poll(T entry)
protected void onPollCompletion(T entry)
protected void processFailure(String msg, Exception e, T entry)
msg - text for the log messagee - optional exception encountered or nullentry - the PollTableEntrypublic void pause()
throws org.apache.axis2.AxisFault
pause in class AbstractTransportListenerorg.apache.axis2.AxisFault - on errorpublic void resume()
throws org.apache.axis2.AxisFault
resume in class AbstractTransportListenerorg.apache.axis2.AxisFault - on errorpublic void maintenenceShutdown(long millis)
throws org.apache.axis2.AxisFault
maintenenceShutdown in class AbstractTransportListenermillis - a number of milliseconds to wait until pending requests are allowed to completeorg.apache.axis2.AxisFault - on errorCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.