Interface SynchronousRequestHandler


public interface SynchronousRequestHandler
An interface for implementing synchronous RequestHandlers. A synchronous request handler will block the caller until an operation has completed which may impact scalability in many environments, such as application servers. Therefore it is recommended that request handlers which are intended for use in production environments implement the asynchronous RequestHandler interface. This interface can be easily "mocked" and is therefore suitable for use in unit tests.

A synchronous request handler can be adapted as a RequestHandler using the Resources.asRequestHandler(SynchronousRequestHandler) method.

For more documentation about the individual operations see RequestHandler.

See Also: