com.sun.xml.ws.commons
Class AbstractTaskManager

java.lang.Object
  extended by com.sun.xml.ws.commons.AbstractTaskManager
Direct Known Subclasses:
DelayedTaskManager, ScheduledTaskManager

public abstract class AbstractTaskManager
extends Object

Abstract parent of *TaskManager classes com.sun.xml.ws.commons created to avoid duplication of code in the individual implementations


Constructor Summary
protected AbstractTaskManager()
           
 
Method Summary
 void close()
          shutdown the ScheduledExecutorService if we created it.
protected  void close(boolean force, long delayMillis)
          shutdown the ScheduledExecutorService if we created it.
protected abstract  ThreadFactory createThreadFactory()
           
protected abstract  Component getComponent()
           
protected  ScheduledExecutorService getExecutorService()
          Return the appropriate ScheduledExecutorService - on initial access, check for container.getSPI NOTE - A COPY OF THIS METHOD CAN BE FOUND AT ManagedEndpoint.getExecutorService() IN metro-cm-api IF A SUITABLE COMMON LOCATION CAN BE FOUND BOTH COPIES MUST BE MOVED
protected abstract  Logger getLogger()
           
protected abstract  String getThreadPoolName()
           
protected abstract  int getThreadPoolSize()
           
 boolean isClosed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTaskManager

protected AbstractTaskManager()
Method Detail

getComponent

protected abstract Component getComponent()

getThreadPoolName

protected abstract String getThreadPoolName()

createThreadFactory

protected abstract ThreadFactory createThreadFactory()

getThreadPoolSize

protected abstract int getThreadPoolSize()

getLogger

protected abstract Logger getLogger()

close

protected void close(boolean force,
                     long delayMillis)
shutdown the ScheduledExecutorService if we created it.

Parameters:
force - - if true, wait for time given by delayMillis, then force shutdown if needed
delayMillis -

close

public void close()
shutdown the ScheduledExecutorService if we created it.


isClosed

public boolean isClosed()

getExecutorService

protected ScheduledExecutorService getExecutorService()
Return the appropriate ScheduledExecutorService - on initial access, check for container.getSPI NOTE - A COPY OF THIS METHOD CAN BE FOUND AT ManagedEndpoint.getExecutorService() IN metro-cm-api IF A SUITABLE COMMON LOCATION CAN BE FOUND BOTH COPIES MUST BE MOVED

Returns:


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.