public class SingleConsumerNode extends SingleLinkNode
The event doesn't cause much to happen, but e.g.
a ConsumerPane
can display
it.
Connection.ConnectionListener
Modifier and Type | Field and Description |
---|---|
(package private) EventID |
eventID |
(package private) PropertyChangeSupport |
pcs |
(package private) boolean |
received |
connection
Constructor and Description |
---|
SingleConsumerNode(NodeID node,
Connection connection,
EventID eventID) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l) |
protected void |
firePropertyChange(String p,
Object old,
Object n) |
EventID |
getEventID() |
boolean |
getReceived()
Has the message been received?
|
void |
handleProducerConsumerEventReport(ProducerConsumerEventReportMessage msg,
Connection sender)
Receive ProducerConsumerEventReport messages,
recording when it's proper event
|
void |
initialize()
Initialize this node and put it in operation
|
void |
removePropertyChangeListener(PropertyChangeListener l) |
void |
setEventID(EventID eid) |
put
defaultHandler, handleConsumerIdentified, handleDatagram, handleDatagramAcknowledged, handleDatagramRejected, handleIdentifyConsumers, handleIdentifyEvents, handleIdentifyProducers, handleInitializationComplete, handleLearnEvent, handleOptionalIntRejected, handleProducerIdentified, handleProtocolIdentificationReply, handleProtocolIdentificationRequest, handleSimpleNodeIdentInfoReply, handleSimpleNodeIdentInfoRequest, handleStreamDataComplete, handleStreamDataProceed, handleStreamDataSend, handleStreamInitReply, handleStreamInitRequest, handleVerifiedNodeIDNumber, handleVerifyNodeIDNumber, put
registerStartNotification
EventID eventID
PropertyChangeSupport pcs
boolean received
public SingleConsumerNode(NodeID node, Connection connection, EventID eventID)
public EventID getEventID()
public void setEventID(EventID eid)
public void initialize()
initialize
in class SingleLinkNode
public void handleProducerConsumerEventReport(ProducerConsumerEventReportMessage msg, Connection sender)
handleProducerConsumerEventReport
in class MessageDecoder
public boolean getReceived()
Resets the value each time called
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
Information on copyright, trademarks and licenses is linked here.
Site hosted by: