Package net.glowstone.net
Class SessionRegistry
java.lang.Object
net.glowstone.net.SessionRegistry
A list of all the sessions which provides a convenient
pulse()
method to pulse every
session in one operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(GlowSession session) Adds a new session.void
pulse()
Pulses all the sessions.void
remove
(GlowSession session) Removes a session.
-
Constructor Details
-
SessionRegistry
public SessionRegistry()
-
-
Method Details
-
pulse
public void pulse()Pulses all the sessions. -
add
Adds a new session.- Parameters:
session
- The session to add.
-
remove
Removes a session.- Parameters:
session
- The session to remove.
-