org.vhorvath.valogato.core.controller
Class ThrottlingProcessController<RQ,RS,EX extends Exception>

java.lang.Object
  extended by org.vhorvath.valogato.core.controller.ThrottlingProcessController<RQ,RS,EX>
All Implemented Interfaces:
IThrottlingController<RQ,RS,EX>

public class ThrottlingProcessController<RQ,RS,EX extends Exception>
extends Object
implements IThrottlingController<RQ,RS,EX>

Author:
Viktor Horvath

Constructor Summary
ThrottlingProcessController()
           
 
Method Summary
 String getRequestId()
           
 Calendar getStartOfProcessing()
           
 RS processRequest(RQ req, ISimulatedService<RQ,RS,EX> simulatedInterface, String backendServiceName, String simulatedServiceName)
           
 RS processRequestAfterSleeping(RQ req, ISimulatedService<RQ,RS,EX> simulatedInterface, String backendServiceName, String simulatedServiceName, BackendServiceBean backendServiceBean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrottlingProcessController

public ThrottlingProcessController()
Method Detail

processRequest

public RS processRequest(RQ req,
                         ISimulatedService<RQ,RS,EX> simulatedInterface,
                         String backendServiceName,
                         String simulatedServiceName)
                  throws EX extends Exception
Specified by:
processRequest in interface IThrottlingController<RQ,RS,EX extends Exception>
Throws:
EX extends Exception

processRequestAfterSleeping

public RS processRequestAfterSleeping(RQ req,
                                      ISimulatedService<RQ,RS,EX> simulatedInterface,
                                      String backendServiceName,
                                      String simulatedServiceName,
                                      BackendServiceBean backendServiceBean)
                               throws EX extends Exception
Specified by:
processRequestAfterSleeping in interface IThrottlingController<RQ,RS,EX extends Exception>
Throws:
EX extends Exception

getStartOfProcessing

public Calendar getStartOfProcessing()
Specified by:
getStartOfProcessing in interface IThrottlingController<RQ,RS,EX extends Exception>

getRequestId

public String getRequestId()
Specified by:
getRequestId in interface IThrottlingController<RQ,RS,EX extends Exception>


Copyright © 2013. All rights reserved.