Class SessionRegistry

java.lang.Object
net.glowstone.net.SessionRegistry

public final class SessionRegistry extends Object
A list of all the sessions which provides a convenient pulse() method to pulse every session in one operation.
Author:
Graham Edgecombe
  • Constructor Details

    • SessionRegistry

      public SessionRegistry()
  • Method Details

    • pulse

      public void pulse()
      Pulses all the sessions.
    • add

      public void add(GlowSession session)
      Adds a new session.
      Parameters:
      session - The session to add.
    • remove

      public void remove(GlowSession session)
      Removes a session.
      Parameters:
      session - The session to remove.