|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgr.uoa.di.madgik.commons.channel.nozzle.ChannelOutlet
public class ChannelOutlet
This class represents one of the channel's nozzles. Each channel can have two types of nozzles. One
that initiates the channel, publishes an IChannelLocator for it and acts a the central synchronization
point which is the ChannelInlet, and the other receives an IChannelLocator to a previously
created channel and can receive events emitted through it and can in turn emit events itself.
| Constructor Summary | |
|---|---|
ChannelOutlet(IChannelLocator Locator)
Instantiates a new channel outlet. |
|
| Method Summary | |
|---|---|
void |
Dispose()
Disposed the nozzle and all associated state. |
IChannelLocator |
GetLocator()
Retrieves the locator that can be used by other nozzles to connect to the channel |
java.util.Collection<ChannelStateEvent> |
GetNozzleEvents()
The nozzle exposes a set of events that are published through the rest of the connected nozzles. |
java.lang.String |
GetNozzleID()
Gets the nozzle id. |
void |
Push(ChannelPayloadStateEvent Event)
Emits the provided event to all connected nozzles. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelOutlet(IChannelLocator Locator)
IChannelProxy depending on the
type of IChannelLocator provided and registers itself to receive notifications from the
underlying ChannelState
Locator - the locator| Method Detail |
|---|
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerpublic java.lang.String GetNozzleID()
public java.util.Collection<ChannelStateEvent> GetNozzleEvents()
public void Dispose()
ChannelState publishing events that the client is registering for is disposed
through ChannelState.Dispose() and finally the underlying ChannelState that is used
to synchronize all connected nozzles id disposed through a call to ChannelState.Dispose()
public void Push(ChannelPayloadStateEvent Event)
Event - the event to emitpublic IChannelLocator GetLocator()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||