|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.commons.channel.events.ChannelState
public class ChannelState
The ChannelState acts as a container for Events regarding a specific channel with which it is associated. Different parts of the synchronization and notification mechanisms that make the channel concept work use the events this class exposes to perform their work. If a thread is accessing the instance events while the dispose method is being called the result may be undefined.
Nested Class Summary | |
---|---|
static class |
ChannelState.EventName
The Events that can be registered for, exposed and send. |
Constructor Summary | |
---|---|
ChannelState()
Creates a new instance of the ChannelState and initializes the StateItems that will be used for Observers to come and register for notifications on their status |
Method Summary | |
---|---|
void |
Dispose()
Unregisters everyone that have registered for events and disposes the state of the object |
java.util.Collection<ChannelStateEvent> |
GetChannelEvents()
Retrieves all the available Events one can register for |
ChannelStateEvent |
GetEvent(ChannelState.EventName EventToRetrieve)
Retrieves a specific Event requesting it by name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelState()
Method Detail |
---|
public java.util.Collection<ChannelStateEvent> GetChannelEvents()
public ChannelStateEvent GetEvent(ChannelState.EventName EventToRetrieve)
EventToRetrieve
- The Event to retrieve
public void Dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |