Class Seti.LocalLocation

  • All Implemented Interfaces:
    java.util.EventListener, org.cometd.bayeux.Bayeux.BayeuxListener, org.cometd.bayeux.server.ServerSession.RemoveListener, org.cometd.bayeux.server.ServerSession.ServerSessionListener, Seti.Location
    Enclosing class:
    Seti

    protected class Seti.LocalLocation
    extends java.lang.Object
    implements Seti.Location, org.cometd.bayeux.server.ServerSession.RemoveListener

    A Location that represent a user connected to a local comet.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LocalLocation​(java.lang.String userId, org.cometd.bayeux.server.ServerSession session)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      void receive​(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)  
      void removed​(org.cometd.bayeux.server.ServerSession session, boolean timeout)  
      void send​(java.lang.String toUser, java.lang.String toChannel, java.lang.Object data)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LocalLocation

        protected LocalLocation​(java.lang.String userId,
                                org.cometd.bayeux.server.ServerSession session)
    • Method Detail

      • send

        public void send​(java.lang.String toUser,
                         java.lang.String toChannel,
                         java.lang.Object data)
        Specified by:
        send in interface Seti.Location
      • receive

        public void receive​(java.lang.String toUser,
                            java.lang.String toChannel,
                            java.lang.Object data)
        Specified by:
        receive in interface Seti.Location
      • removed

        public void removed​(org.cometd.bayeux.server.ServerSession session,
                            boolean timeout)
        Specified by:
        removed in interface org.cometd.bayeux.server.ServerSession.RemoveListener
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface Seti.Location
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Seti.Location
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object