public class GWTStreamingClientConnector extends DefaultStreamingClientConnector
ConnectionStrategyClientConnector
listens for occurred events (Event
)
of the server side and has the task to encode / process the transferred events at the client side.
The GWTStreamingClientConnector
is an
GWT specific implementation of streaming. It implements the forever frame technique with a high number of GWT on-board methods.
Streaming means that the connection is hold open for a specified time and when an event
occurs, the answer / event is streamed directly to the client without closing and re-open the connection. The connection is
closed and re-opened (by the client) when the configured max. waiting time is reached.CYCLE_TAG
Constructor and Description |
---|
GWTStreamingClientConnector() |
Modifier and Type | Method and Description |
---|---|
void |
deactivate()
Deactivates the
ConnectionStrategyClientConnector . |
protected DomainEvent |
deserializeEvent(String anEvent)
De-serializes an occurred event with GWT serialization methods.
|
void |
init(EventServiceAsync anEventService)
Initializes the
ConnectionStrategyClientConnector with
the EventServiceAsync . |
protected void |
listen()
Initializes or refreshes the forever frame (see
initStreamingConnectorFrame() ). |
isInitialized, listen, receiveEvent
public GWTStreamingClientConnector()
public void init(EventServiceAsync anEventService)
ConnectionStrategyClientConnector
with
the EventServiceAsync
.
That implementation prepares the processing of occurred, serialized events.init
in interface ConnectionStrategyClientConnector
init
in class DefaultStreamingClientConnector
anEventService
- the EventServiceAsync
public void deactivate()
ConnectionStrategyClientConnector
.
That implementation removes the forever frame, so the listening is stopped and cleared up.deactivate
in interface ConnectionStrategyClientConnector
deactivate
in class DefaultStreamingClientConnector
protected DomainEvent deserializeEvent(String anEvent)
deserializeEvent
in class DefaultStreamingClientConnector
anEvent
- event to de-serializeprotected void listen()
initStreamingConnectorFrame()
).listen
in class DefaultStreamingClientConnector
Copyright © 2012. All Rights Reserved.