]> source.dussan.org Git - vaadin-framework.git/commit
Refactor PushConnection handling (#13223)
authorJohannes Dahlström <johannesd@vaadin.com>
Wed, 22 Jan 2014 13:29:25 +0000 (15:29 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 31 Jan 2014 09:21:19 +0000 (09:21 +0000)
commit3c5644c4a3e0484b7e65a2852d9cedeeab167419
tree421bbbb28237c89ab439c36499a0a0663f72a0b5
parentf52c25fbb87d4c872304323d8ab42ba6d3ea0497
Refactor PushConnection handling (#13223)

UIs now always have a PushConnection object if push is enabled,
and push reconnections do not create and set a new instance.
PushConnection.push can always be called; it internally handles
deferring the push until (re)connection if it is currently
disconnected. This is very desirable when using long polling,
as it reconnects after each push.

Change-Id: I478748cc940da86f34a5f55266f6b325682d4585
server/src/com/vaadin/server/communication/AtmospherePushConnection.java
server/src/com/vaadin/server/communication/PushConnection.java
server/src/com/vaadin/server/communication/PushHandler.java
server/src/com/vaadin/ui/PushConfiguration.java
server/src/com/vaadin/ui/UI.java