Class AsynchronousRequestHandlerCallable
- java.lang.Object
-
- de.uplanet.lucy.server.composer.asynchronous.AsynchronousRequestHandlerCallable
-
@VelocityCallable("singleton") public final class AsynchronousRequestHandlerCallable extends Object
-
-
Constructor Summary
Constructors Constructor Description AsynchronousRequestHandlerCallable()Explicit default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasynchronousTaskExists(String p_strId)Check if an asynchronous task with the given ID exists.SharedStatecreateSharedState()de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuturegetTask(String p_strId)UsepeekTask(String)instead.booleanisServiceAvailable()Check if the Asynchronous Request Handler Service is available.de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuturepeekTask(String p_strId)Get the task with the given ID.StringrenderAsynchronously(ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm)StringrenderAsynchronously(ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm, Map<String,Object> p_vcVariables)StringrenderAsynchronously(String p_strId, ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm)StringrenderAsynchronously(String p_strId, ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm, Map<String,Object> p_vcVariables)de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuturetakeTask(String p_strId)Get the task with the given ID and remove it from the underlying collection.
-
-
-
Method Detail
-
isServiceAvailable
public boolean isServiceAvailable()
Check if the Asynchronous Request Handler Service is available.- Returns:
trueif the service is available, orfalseotherwise.
-
createSharedState
public SharedState createSharedState()
-
asynchronousTaskExists
public boolean asynchronousTaskExists(String p_strId)
Check if an asynchronous task with the given ID exists.- Parameters:
p_strId- The identifier.- Returns:
trueif a task with the given ID exists, orfalseotherwise.
-
peekTask
public de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuture peekTask(String p_strId)
Get the task with the given ID.The task is not being removed from the underlying collection.
- Parameters:
p_strId- The identifier.- Returns:
- The task with the given ID, or
nullif there's none.
-
getTask
public de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuture getTask(String p_strId)
UsepeekTask(String)instead.
-
takeTask
public de.uplanet.lucy.server.composer.asynchronous.IAsynchronousRequestHandlerFuture takeTask(String p_strId)
Get the task with the given ID and remove it from the underlying collection.If the task has not yet completed, the caller may wait until the
Future'sisDonemethod returnstrue.- Parameters:
p_strId- The identifier.- Returns:
- The task with the given ID, or
nullif there's none.
-
renderAsynchronously
public String renderAsynchronously(ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm)
-
renderAsynchronously
public String renderAsynchronously(ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm, Map<String,Object> p_vcVariables)
-
renderAsynchronously
public String renderAsynchronously(String p_strId, ISession p_session, IServerBridgeRequest p_request, IViewData p_viewData, SharedState p_sharedState, String p_strCharset, String p_strVm)
-
-