org.robokind.impl.motion.messaging
Class JMSMotionFrameSender
java.lang.Object
org.robokind.api.messaging.DefaultMessageSender<Msg,Rec>
org.robokind.impl.messaging.JMSAvroMessageSender<MotionFrameEvent,MotionFrameEventRecord>
org.robokind.impl.motion.messaging.JMSMotionFrameSender
- All Implemented Interfaces:
- MessageSender<MotionFrameEvent>
public class JMSMotionFrameSender
- extends JMSAvroMessageSender<MotionFrameEvent,MotionFrameEventRecord>
JMSAvroMessageSender for sending MotionFrameEvents
- Author:
- Matthew Stevenson
|
Constructor Summary |
JMSMotionFrameSender(javax.jms.Session session,
javax.jms.Destination destination)
Creates a new JMSMotionFrameSender |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSMotionFrameSender
public JMSMotionFrameSender(javax.jms.Session session,
javax.jms.Destination destination)
- Creates a new JMSMotionFrameSender
- Parameters:
session - destination -
setSourceId
public void setSourceId(String sourceId)
- Sets the source id String for this sender.
This is used as the sourceId in outgoing MotionFrameEvents.
- Parameters:
sourceId - source id String to use
setDestinationId
public void setDestinationId(String destId)
- Set the destination id String for this sender.
This is used as the destinationId in outgoing MotionFrameEvents.
- Parameters:
destId - destination id String to use.
sendMotionFrame
public void sendMotionFrame(MotionFrame frame)
- Creates a MotionFrameEvent for the given MotionFrame, and sends it.
- Parameters:
frame - MotionFrame to send
- Throws:
NullPointerException - if the sourceId or destinationId for this
sender are null, or if the given MotionFrame is null.
Copyright © 2011-2012. All Rights Reserved.