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.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
ConfigurableServerChannel.Initializer.PersistentNested 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 voidcometLeft(Oort.CometListener.Event event)Callback method invoked when a comet leaves the cloudprotected voiddoStop()protected abstract booleanisItemUpdate(Map<String,Object> data)protected abstract voidonItem(OortObject.Info<T> info, Map<String,Object> data)protected voidonObject(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, toStringMethods 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:
doStopin classOortObject<T>- Throws:
Exception
-
cometLeft
Description copied from interface:Oort.CometListenerCallback method invoked when a comet leaves the cloud- Specified by:
cometLeftin interfaceOort.CometListener- Overrides:
cometLeftin classOortObject<T>- Parameters:
event- the comet event
-
onObject
- Overrides:
onObjectin classOortObject<T>
-
isItemUpdate
-
onItem
-