public int getQueueSize() { if (managementSupport != null) { return managementSupport.getQueueSize(); } return -1; }
public int getQueueSize() { if (managementSupport != null) { return managementSupport.getQueueSize(); } return -1; }
/** * Determines the total number of pending listener threads (active + queued). * * @return the total number of pending listener threads (active + queued). */ public int getPendingListenerThreadCount() { int pendingThreads = 0; Map<String, TransportInDescription> trpIns = configurationContext.getAxisConfiguration().getTransportsIn(); for (TransportInDescription trpIn : trpIns.values()) { TransportListener trpLst = trpIn.getReceiver(); if (trpLst instanceof ManagementSupport) { int inUse = ((ManagementSupport) trpLst).getActiveThreadCount(); int inQue = ((ManagementSupport) trpLst).getQueueSize(); if ((inUse + inQue) > 0) { if (log.isDebugEnabled()) { log.debug(new StringBuilder("Transport Listener : ") .append(trpIn.getName()).append(" currently using : ") .append(inUse).append(" threads with ").append(inQue) .append(" requests already queued...").toString()); } pendingThreads = (inUse + inQue); } } } return pendingThreads; }
/** * Determines the total number of pending listener threads (active + queued). * * @return the total number of pending listener threads (active + queued). */ public int getPendingListenerThreadCount() { int pendingThreads = 0; Map<String, TransportInDescription> trpIns = configurationContext.getAxisConfiguration().getTransportsIn(); for (TransportInDescription trpIn : trpIns.values()) { TransportListener trpLst = trpIn.getReceiver(); if (trpLst instanceof ManagementSupport) { int inUse = ((ManagementSupport) trpLst).getActiveThreadCount(); int inQue = ((ManagementSupport) trpLst).getQueueSize(); if ((inUse + inQue) > 0) { if (log.isDebugEnabled()) { log.debug(new StringBuilder("Transport Listener : ") .append(trpIn.getName()).append(" currently using : ") .append(inUse).append(" threads with ").append(inQue) .append(" requests already queued...").toString()); } pendingThreads = (inUse + inQue); } } } return pendingThreads; }
int inQue = ((ManagementSupport) trpSnd).getQueueSize();
int inQue = ((ManagementSupport) trpSnd).getQueueSize();