Package org.cometd.oort
Class OortContainer<T>
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.cometd.oort.OortObject<T>
org.cometd.oort.OortContainer<T>
- All Implemented Interfaces:
Iterable<OortObject.Info<T>>
,EventListener
,ConfigurableServerChannel.Initializer
,Oort.CometListener
,org.eclipse.jetty.util.component.LifeCycle
public abstract class OortContainer<T> extends OortObject<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cometd.oort.OortObject
OortObject.Data<T>, OortObject.Factory<T>, OortObject.Info<T>, OortObject.Listener<T>, OortObject.Merger<T,R>, OortObject.Result<R>
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
ConfigurableServerChannel.Initializer.Persistent
Nested classes/interfaces inherited from interface org.cometd.oort.Oort.CometListener
Oort.CometListener.Adapter, Oort.CometListener.Event
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OortContainer(Oort oort, String name, OortObject.Factory<T> factory)
-
Method Summary
Modifier and Type Method Description void
cometLeft(Oort.CometListener.Event event)
Callback method invoked when a comet leaves the cloudprotected void
doStop()
protected abstract boolean
isItemUpdate(Map<String,Object> data)
protected abstract void
onItem(OortObject.Info<T> info, Map<String,Object> data)
protected void
onObject(Map<String,Object> data)
Methods inherited from class org.cometd.oort.OortObject
addListener, cometJoined, configureChannel, deserialize, doStart, getChannelName, getFactory, getInfo, getInfoByObject, getInfos, getLocalSession, getName, getOort, iterator, merge, newInfo, notifyRemoved, notifyUpdated, pullInfo, pushInfo, removeListener, removeListeners, serialize, setAndShare, setAndShare, toString
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
Constructor Details
-
Method Details
-
doStop
- Overrides:
doStop
in classOortObject<T>
- Throws:
Exception
-
cometLeft
Description copied from interface:Oort.CometListener
Callback method invoked when a comet leaves the cloud- Specified by:
cometLeft
in interfaceOort.CometListener
- Overrides:
cometLeft
in classOortObject<T>
- Parameters:
event
- the comet event
-
onObject
- Overrides:
onObject
in classOortObject<T>
-
isItemUpdate
-
onItem
-