Class Seti.LocalLocation

All Implemented Interfaces:
java.util.EventListener, Bayeux.BayeuxListener, ServerSession.RemovedListener, ServerSession.ServerSessionListener, Seti.Location
Enclosing class:

protected class Seti.LocalLocation
extends java.lang.Object
implements Seti.Location, ServerSession.RemovedListener

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

  • Constructor Summary

    Modifier Constructor Description
    protected LocalLocation​(java.lang.String userId, ServerSession session)  
  • Method Summary

    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​(ServerSession session, ServerMessage message, boolean timeout)
    Callback invoked when the session is removed.
    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 Details

    • LocalLocation

      protected LocalLocation​(java.lang.String userId, ServerSession session)
  • Method Details

    • 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​(ServerSession session, ServerMessage message, boolean timeout)
      Description copied from interface: ServerSession.RemovedListener

      Callback invoked when the session is removed.

      Specified by:
      removed in interface ServerSession.RemovedListener
      session - the removed session
      message - the message that caused the session removal, or null
      timeout - whether the session has been removed due to a timeout
    • equals

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

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

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