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 TypeMethodDescriptionvoidadd(GlowSession session) Adds a new session.voidpulse()Pulses all the sessions.voidremove(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.
-