activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1303494 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
Date Wed, 21 Mar 2012 18:40:16 GMT
Author: chirino
Date: Wed Mar 21 18:40:15 2012
New Revision: 1303494

URL: http://svn.apache.org/viewvc?rev=1303494&view=rev
Log:
Implement API changes in the hawtdispatch.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala?rev=1303494&r1=1303493&r2=1303494&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/jetty/WebSocketTransportFactory.scala
Wed Mar 21 18:40:15 2012
@@ -156,6 +156,9 @@ object WebSocketTransportFactory extends
       }
     }
 
+    def start(on_completed: Task):Unit = this.start(on_completed.asInstanceOf[Runnable])
+    def stop(on_completed: Task):Unit = this.stop(on_completed.asInstanceOf[Runnable])
+
     def getBoundAddress = {
       val prefix = "/" + uri.getPath.stripPrefix("/")
       new URI(uri.getScheme + "://" + uri.getHost + ":" + connector.getLocalPort + prefix).toString
@@ -253,7 +256,10 @@ object WebSocketTransportFactory extends
       }
       on_completed.run()
     }
-    
+
+    def start(on_completed: Task):Unit = this.start(on_completed.asInstanceOf[Runnable])
+    def stop(on_completed: Task):Unit = this.stop(on_completed.asInstanceOf[Runnable])
+
     def getLocalAddress = new InetSocketAddress(request.getLocalAddr, request.getLocalPort)
     def getRemoteAddress = new InetSocketAddress(request.getRemoteHost, request.getRemotePort)
 



Mime
View raw message