public class AtmosphereRequestHandler extends Object implements IRequestHandler
AjaxRequestTarget
is scheduled and the
subscribed methods are invoked.Constructor and Description |
---|
AtmosphereRequestHandler(PageKey pageKey,
Iterator<EventSubscription> subscriptions,
AtmosphereEvent event,
EventSubscriptionInvoker eventSubscriptionInvoker)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
detach(IRequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and
that cleaning up of the subject(s) of this target may be done.
|
void |
respond(IRequestCycle requestCycle)
Generates a response.
|
public AtmosphereRequestHandler(PageKey pageKey, Iterator<EventSubscription> subscriptions, AtmosphereEvent event, EventSubscriptionInvoker eventSubscriptionInvoker)
pageKey
- subscriptions
- event
- eventSubscriptionInvoker
- public void respond(IRequestCycle requestCycle)
IRequestHandler
respond
in interface IRequestHandler
requestCycle
- the current request cyclepublic void detach(IRequestCycle requestCycle)
IRequestHandler
detach
in interface IRequestHandler
requestCycle
- the current request cycleCopyright © 2006–2021 Apache Software Foundation. All rights reserved.