com.wm.app.tn.db
Class GivenTaskDequeingStrategy

java.lang.Object
  extended by com.wm.app.tn.db.GivenTaskDequeingStrategy
All Implemented Interfaces:
IJobDequeingStrategy

public class GivenTaskDequeingStrategy
extends java.lang.Object
implements IJobDequeingStrategy

Returns the strategy giving the "queued" task with given taskId in the given queue OTN-11671

Author:
MABH

Constructor Summary
GivenTaskDequeingStrategy()
           
 
Method Summary
 java.lang.String getStrategy()
          Strategy identifier Right now it just returns the SQL identifier string in dbops.sql
 java.lang.Object getStrategyMapEntry(java.lang.String key)
           
 java.sql.PreparedStatement setPreparedStatementFromStrategyMap(java.sql.Connection conn, java.lang.String queue)
           
 void setStrategyMapEntry(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GivenTaskDequeingStrategy

public GivenTaskDequeingStrategy()
Method Detail

getStrategy

public java.lang.String getStrategy()
Description copied from interface: IJobDequeingStrategy
Strategy identifier Right now it just returns the SQL identifier string in dbops.sql

Specified by:
getStrategy in interface IJobDequeingStrategy

setPreparedStatementFromStrategyMap

public java.sql.PreparedStatement setPreparedStatementFromStrategyMap(java.sql.Connection conn,
                                                                      java.lang.String queue)
                                                               throws java.sql.SQLException
Specified by:
setPreparedStatementFromStrategyMap in interface IJobDequeingStrategy
Throws:
java.sql.SQLException

setStrategyMapEntry

public void setStrategyMapEntry(java.lang.String key,
                                java.lang.Object value)
Specified by:
setStrategyMapEntry in interface IJobDequeingStrategy

getStrategyMapEntry

public java.lang.Object getStrategyMapEntry(java.lang.String key)
Specified by:
getStrategyMapEntry in interface IJobDequeingStrategy