public class PushHandler extends Object
UI
/ AtmospherePushConnection
.
For internal use only. May be renamed or removed in a future release.
Constructor and Description |
---|
PushHandler(VaadinServletService service)
Creates an instance connected to the given service.
|
Modifier and Type | Method and Description |
---|---|
int |
getLongPollingSuspendTimeout()
Gets the timeout used for suspend calls when using long polling.
|
void |
setLongPollingSuspendTimeout(int longPollingSuspendTimeout)
Sets the timeout used for suspend calls when using long polling.
|
protected void |
suspend(org.atmosphere.cpr.AtmosphereResource resource)
Suspends the given resource
|
public PushHandler(VaadinServletService service)
service
- the service this handler belongs toprotected void suspend(org.atmosphere.cpr.AtmosphereResource resource)
resource
- the resource to suspendpublic void setLongPollingSuspendTimeout(int longPollingSuspendTimeout)
longPollingSuspendTimeout
- the timeout to use for suspended AtmosphereResourcespublic int getLongPollingSuspendTimeout()
Copyright © 2022. All rights reserved.