|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.backbone.frame.ItsFrameReceiver
Provides an incoming stream of ITS Frames from the network to an application-specific subclass. The frames are queued internally, and a separate thread handles the notification process, removing frames from the queue only after the notification has completed. So lengthy processing of the frames by a subclass will not prevent all the frames from eventually arriving in order.
| Field Summary | |
boolean |
ignoreStreamTimeout
Allows override of the timeout value that may be contained in an SDD stream. |
| Constructor Summary | |
ItsFrameReceiver(java.lang.String serverName,
int serverPort)
Constructs an ItsFrameReceiver that listens to the given server. |
|
ItsFrameReceiver(java.lang.String serverName,
int serverPort,
boolean autoStart)
Deprecated. As of SDD 2.2.0, it's always necessary to explicitly start the receiver by calling start(), so the autoStart parameter is irrelevant. |
|
| Method Summary | |
void |
frameReceived(ItsFrame f)
Subclasses can override this method to receive the incoming ITS Frames. |
FrameQueue |
getFrameQueue()
Provides access to the internal FrameQueue object |
InputBuffer |
getInputBuffer()
Provides access to the internal InputBuffer object |
void |
run()
Main loop for the ItsFrameReceiver thread. |
void |
start()
Starts a new connection to the data stream. |
void |
start(java.lang.ThreadGroup tg)
|
void |
stop()
Terminates the connection to the data stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean ignoreStreamTimeout
| Constructor Detail |
public ItsFrameReceiver(java.lang.String serverName,
int serverPort)
throws java.io.IOException
java.io.IOException - if a connection to the given server is impossible
public ItsFrameReceiver(java.lang.String serverName,
int serverPort,
boolean autoStart)
throws java.io.IOException
autoStart - if true, the start() method is called automatically.
java.io.IOException - if a connection to the given server is impossible| Method Detail |
public void start()
throws java.io.IOException
java.io.IOException - if a connection to the given server is impossible
public void start(java.lang.ThreadGroup tg)
throws java.io.IOException
java.io.IOExceptionpublic void stop()
public void run()
run in interface java.lang.Runnablepublic void frameReceived(ItsFrame f)
public InputBuffer getInputBuffer()
public FrameQueue getFrameQueue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||