org.apache.sandesha2.polling
Class PollingManager

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.sandesha2.polling.PollingManager
All Implemented Interfaces:
java.lang.Runnable

public class PollingManager
extends java.lang.Thread

This class is responsible for sending MakeConnection requests. This is a seperate thread that keeps running. Will do MakeConnection based on the request queue or randomly.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PollingManager()
           
 
Method Summary
 boolean isPoll()
           
 void run()
           
 void setPoll(boolean poll)
           
 void shedulePollingRequest(java.lang.String sequenceId)
          Asking the polling manager to do a polling request on the sequence identified by the given InternalSequenceId.
 void start()
           
 void start(org.apache.axis2.context.ConfigurationContext configurationContext)
          Starts the PollingManager.
 void stopPolling()
          Asks the PollingManager to stop its work.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PollingManager

public PollingManager()
Method Detail

run

public void run()

start

public void start(org.apache.axis2.context.ConfigurationContext configurationContext)
           throws SandeshaException
Starts the PollingManager.

Parameters:
configurationContext -
Throws:
SandeshaException

stopPolling

public void stopPolling()
Asks the PollingManager to stop its work.


setPoll

public void setPoll(boolean poll)

isPoll

public boolean isPoll()

start

public void start()

shedulePollingRequest

public void shedulePollingRequest(java.lang.String sequenceId)
Asking the polling manager to do a polling request on the sequence identified by the given InternalSequenceId.

Parameters:
sequenceId -


Copyright © 2005-2006 Apache Web Services. All Rights Reserved.