Package com.vaadin.client.communication
Class ReconnectionAttemptEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<ReconnectionAttemptEvent.Handler>
com.vaadin.client.communication.ReconnectionAttemptEvent
public class ReconnectionAttemptEvent
extends com.google.web.bindery.event.shared.Event<ReconnectionAttemptEvent.Handler>
Event fired when a reconnection attempt is requested.
- Since:
- 24.7
- Author:
- Vaadin Ltd
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.web.bindery.event.shared.Event
com.google.web.bindery.event.shared.Event.Type<H> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispatch(ReconnectionAttemptEvent.Handler handler) com.google.web.bindery.event.shared.Event.Type<ReconnectionAttemptEvent.Handler> intGets the number of the current reconnection attempt.static com.google.web.bindery.event.shared.Event.Type<ReconnectionAttemptEvent.Handler> getType()Gets the type of the event after ensuring the type has been created.Methods inherited from class com.google.web.bindery.event.shared.Event
getSource, setSource, toDebugString, toString
-
Constructor Details
-
ReconnectionAttemptEvent
public ReconnectionAttemptEvent(int attempt) Creates an event object.- Parameters:
attempt- the reconnection attempt number
-
-
Method Details
-
getAttempt
public int getAttempt()Gets the number of the current reconnection attempt.- Returns:
- the number of the current reconnection attempt.
-
getType
public static com.google.web.bindery.event.shared.Event.Type<ReconnectionAttemptEvent.Handler> getType()Gets the type of the event after ensuring the type has been created.- Returns:
- the type for the event
-
getAssociatedType
public com.google.web.bindery.event.shared.Event.Type<ReconnectionAttemptEvent.Handler> getAssociatedType()- Specified by:
getAssociatedTypein classcom.google.web.bindery.event.shared.Event<ReconnectionAttemptEvent.Handler>
-
dispatch
- Specified by:
dispatchin classcom.google.web.bindery.event.shared.Event<ReconnectionAttemptEvent.Handler>
-