Package com.sun.identity.saml.servlet
Class POSTCleanUpRunnable
- java.lang.Object
-
- com.sun.identity.common.GeneralTaskRunnable
-
- com.sun.identity.saml.servlet.POSTCleanUpRunnable
-
- All Implemented Interfaces:
TaskRunnable,Runnable
public class POSTCleanUpRunnable extends GeneralTaskRunnable
This is a helper class used by SAMLPOSTProfileServlet to clean up expired assertionIDs from the map.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.common.GeneralTaskRunnable
headTask, nextTask, previousTask
-
-
Constructor Summary
Constructors Constructor Description POSTCleanUpRunnable(long runPeriod, Map map)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddElement(Object obj)Adds an element to this TaskRunnable.longgetRunPeriod()Returns the run period of this TaskRunnable.booleanisEmpty()Indicates whether this TaskRunnable is empty.booleanremoveElement(Object obj)Removes an element from this TaskRunnable.voidrun()-
Methods inherited from class com.sun.identity.common.GeneralTaskRunnable
cancel, getHeadTask, isScheduled, next, previous, scheduledExecutionTime, setHeadTask, setNext, setPrevious
-
-
-
-
Constructor Detail
-
POSTCleanUpRunnable
public POSTCleanUpRunnable(long runPeriod, Map map)Constructor.- Parameters:
runPeriod- The period for the clean up to run.map- theMapto be cleaned up.
-
-
Method Detail
-
addElement
public boolean addElement(Object obj)
Description copied from interface:TaskRunnableAdds an element to this TaskRunnable.- Parameters:
obj- Element to be added to this TaskRunnable- Returns:
- a boolean to indicate whether the add success
-
removeElement
public boolean removeElement(Object obj)
Description copied from interface:TaskRunnableRemoves an element from this TaskRunnable.- Parameters:
obj- Element to be removed from this TaskRunnable- Returns:
- A boolean to indicate whether the remove success
-
isEmpty
public boolean isEmpty()
Description copied from interface:TaskRunnableIndicates whether this TaskRunnable is empty.- Returns:
- A boolean to indicate whether this TaskRunnable is empty
-
getRunPeriod
public long getRunPeriod()
Description copied from interface:TaskRunnableReturns the run period of this TaskRunnable.- Returns:
- A long value to indicate the run period
-
run
public void run()
-
-