net.liftweb.http.ListenerManager

trait ListenerManager

trait ListenerManager

 extends ScalaObject


This trait manages a set of Actors in a publish/subscribe pattern. When you extend your Actor with this trait, you automatically get handling for sending messages out to all subscribed Actors. Simply override the high-, medium-, or lowPriority handlers to do your message processing. When you want to update all subscribers, just call the updateListeners method. The createUpdate method is used to generate the message that you want sent to all subscribers.


Companion: ListenerManager

Source: CometActor.scala(165)

 Fields

createUpdate.. protected abstract def createUpdate
This method is called when the updateListeners method needs a message to send to subscribed Actors
Any
highPriority.. protected def highPriority PartialFunction[Any, Unit]
listenerService.. protected def listenerService PartialFunction[Any, Unit]
lowPriority.. protected def lowPriority PartialFunction[Any, Unit]
mediumPriority.. protected def mediumPriority PartialFunction[Any, Unit]
messageHandler.. protected def messageHandler PartialFunction[Any, Unit]

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
updateIfPassesTest.. protected def updateIfPassesTest(update : Any)(info : Tuple2) Unit
updateListeners.. protected def updateListeners Unit
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.