Class OortComet

java.lang.Object
org.cometd.common.AbstractClientSession
org.cometd.client.BayeuxClient
org.cometd.oort.OortComet
All Implemented Interfaces:
org.cometd.bayeux.Bayeux, org.cometd.bayeux.client.ClientSession, org.cometd.bayeux.Session, org.eclipse.jetty.util.component.Dumpable

public class OortComet extends org.cometd.client.BayeuxClient

The Oort comet client connects a local Oort comet server to a remote Oort comet server.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.cometd.client.BayeuxClient

    org.cometd.client.BayeuxClient.BackOffStrategy, org.cometd.client.BayeuxClient.BayeuxClientChannel, org.cometd.client.BayeuxClient.Scheduler, org.cometd.client.BayeuxClient.State

    Nested classes/interfaces inherited from class org.cometd.common.AbstractClientSession

    org.cometd.common.AbstractClientSession.AbstractSessionChannel

    Nested classes/interfaces inherited from interface org.cometd.bayeux.Bayeux

    org.cometd.bayeux.Bayeux.BayeuxListener, org.cometd.bayeux.Bayeux.Validator

    Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession

    org.cometd.bayeux.client.ClientSession.Extension, org.cometd.bayeux.client.ClientSession.MessageListener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer
  • Field Summary

    Fields inherited from class org.cometd.client.BayeuxClient

    BACKOFF_INCREMENT_OPTION, BAYEUX_VERSION, MAX_BACKOFF_OPTION

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    OortComet​(Oort oort, String cometURL, ScheduledExecutorService scheduler, org.cometd.client.transport.ClientTransport transport, org.cometd.client.transport.ClientTransport... transports)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    subscribe​(Set<String> observedChannels)
     
     
    protected void
    unsubscribe​(String channel)
     

    Methods inherited from class org.cometd.client.BayeuxClient

    abort, addTransportListener, disconnect, disconnect, enqueueSend, getAllowedTransports, getBackOffStrategy, getCookie, getCookieStore, getId, getKnownTransportNames, getOption, getOptionNames, getOptions, getState, getTransport, getTransport, getURL, handshake, handshake, handshake, handshake, initialize, isConnected, isDisconnected, isHandshook, messagesFailure, newChannel, newChannelId, onTransportFailure, onTransportFailure, processConnect, processDisconnect, processHandshake, processMessage, putCookie, removeTransportListener, scheduleConnect, scheduleHandshake, send, sendBatch, sendConnect, sendHandshake, sendMessages, setBackOffStrategy, setOption, terminate, waitFor

    Methods inherited from class org.cometd.common.AbstractClientSession

    addExtension, batch, dump, endBatch, extendIncoming, extendOutgoing, getAttribute, getAttributeNames, getChannel, getChannel, getChannels, getExtensions, isBatching, newMessage, newMessageId, notifyCallback, notifyListeners, receive, registerCallback, registerSubscriber, remoteCall, removeAttribute, removeExtension, resetSubscriptions, setAttribute, startBatch, unregisterCallback, unregisterSubscriber

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.cometd.bayeux.client.ClientSession

    disconnect, handshake, handshake

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dump, dumpSelf
  • Constructor Details

    • OortComet

      public OortComet(Oort oort, String cometURL, ScheduledExecutorService scheduler, org.cometd.client.transport.ClientTransport transport, org.cometd.client.transport.ClientTransport... transports)
  • Method Details

    • subscribe

      protected void subscribe(Set<String> observedChannels)
    • unsubscribe

      protected void unsubscribe(String channel)
    • clearSubscriptions

      protected void clearSubscriptions()
    • toString

      public String toString()
      Overrides:
      toString in class org.cometd.client.BayeuxClient