public class LongPollingServerConnector extends ConnectionStrategyServerConnectorAdapter
LongPollingServerConnector
implements
the long-polling event listen method. Long-polling means that the connection is hold open for a specified time and when an event
occurs, the answer / event is sent directly to the client.
The ConnectionStrategyServerConnector
listens for occurring events (Event
)
on the server side and has the task to prepare the transfer from the server side to the client side.Constructor and Description |
---|
LongPollingServerConnector(EventServiceConfiguration aConfiguration)
Creates a new
LongPollingServerConnector . |
Modifier and Type | Method and Description |
---|---|
List<DomainEvent> |
listen(UserInfo aUserInfo)
Listens for occurring events with the long-polling strategy.
|
encode, getConfiguration, getEncoding, waitMaxWaitingTime, waitMinWaitingTime
public LongPollingServerConnector(EventServiceConfiguration aConfiguration)
LongPollingServerConnector
.
The LongPollingServerConnector
implements
the long-polling event listen method.aConfiguration
- configurationpublic List<DomainEvent> listen(UserInfo aUserInfo) throws EventServiceException
aUserInfo
- UserInfo
which holds new occurred eventsEventServiceException
Copyright © 2012. All Rights Reserved.