On application startup, there is need of syncing ldap server(with latest ldifs).
This sync process is initiated through one of servlets.
While sync is in progress I want all requests by other servlets (which are dependent on sync completion job) route to maintenance page.
Currently I put the sync status in map which gets updated by sync servlet.
Other servlets check for sync status before servicing requests.