Package org.apache.synapse.core.axis2
Class Axis2TransportHelper
- java.lang.Object
-
- org.apache.synapse.core.axis2.Axis2TransportHelper
-
public class Axis2TransportHelper extends Object
Provides functionality to pause and resume listeners and transports and retrieve current thread count.
-
-
Constructor Summary
Constructors Constructor Description Axis2TransportHelper(org.apache.axis2.context.ConfigurationContext configurationContext)Creates a new Axis2TransportHelper using the provided Axis2 configuration context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveConnectionsCount()intgetPendingListenerThreadCount()Determines the total number of pending listener threads (active + queued).intgetPendingSenderThreadCount()Determines the total number of pending sender threads (active + queued).voidpauseListeners()Pauses all Axis2 listeners which support this operation.voidpauseSenders()Pauses all Axis2 senders which support this operation.voidresumeListeners()Resumes all paused Axis2 listeners.voidresumeSenders()Resumes all paused Axis2 senders.
-
-
-
Method Detail
-
pauseListeners
public void pauseListeners()
Pauses all Axis2 listeners which support this operation.
-
resumeListeners
public void resumeListeners()
Resumes all paused Axis2 listeners.
-
pauseSenders
public void pauseSenders()
Pauses all Axis2 senders which support this operation.
-
resumeSenders
public void resumeSenders()
Resumes all paused Axis2 senders.
-
getPendingListenerThreadCount
public int getPendingListenerThreadCount()
Determines the total number of pending listener threads (active + queued).- Returns:
- the total number of pending listener threads (active + queued).
-
getActiveConnectionsCount
public int getActiveConnectionsCount()
-
getPendingSenderThreadCount
public int getPendingSenderThreadCount()
Determines the total number of pending sender threads (active + queued).- Returns:
- the total number of pending sender threads (active + queued).
-
-