Package net.officefloor.server.http
Class AbstractHttpServerImplementationTestCase.PressureOverloadServicer
java.lang.Object
net.officefloor.server.http.AbstractHttpServerImplementationTestCase.PressureOverloadServicer
- Enclosing class:
- AbstractHttpServerImplementationTestCase
public static class AbstractHttpServerImplementationTestCase.PressureOverloadServicer
extends Object
Servicer that is slow causing significant back pressure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackPressure(Thread serviceThread, ServerHttpConnection connection, AbstractHttpServerImplementationTestCase.TeamMarker marker) Handles back pressure (should not be invoked).service()Services the request.
-
Constructor Details
-
PressureOverloadServicer
public PressureOverloadServicer()
-
-
Method Details
-
service
Services the request.- Returns:
- Current
Thread.
-
backPressure
public void backPressure(@Parameter Thread serviceThread, ServerHttpConnection connection, AbstractHttpServerImplementationTestCase.TeamMarker marker) throws Exception Handles back pressure (should not be invoked).- Parameters:
serviceThread- the originating serviceThread.connection-ServerHttpConnection.marker-AbstractHttpServerImplementationTestCase.TeamMarker.- Throws:
Exception- On servicing failure.
-