Publising every 1 sec.

5 posts / 0 new
Last post
Offline
Last seen: 12 years 2 months ago
Joined: 09/11/2012
Posts: 4
Publising every 1 sec.

I know that i can use timebasedfilter on subscriber side, but if i want to publish information every 1 second how i can to do this?

 

thanks.

Gerardo Pardo's picture
Offline
Last seen: 3 weeks 1 hour ago
Joined: 06/02/2010
Posts: 602

Hello,

Can you clarify what you mean by this?  Your application controls when the data is published as it is the one that calls the "write" operation on the DataWriter. But I assume that you have something else in mind here...

 

Gerardo

Offline
Last seen: 12 years 2 months ago
Joined: 09/11/2012
Posts: 4

I using udp for transport every second message with size 400kb. Let say i don't want to use (we are speaking about java) wait\sleep.

The question if i have something like time based filter on publisher side, or I must create logical unit for calling writer manually(some timer I mean)?

Gerardo Pardo's picture
Offline
Last seen: 3 weeks 1 hour ago
Joined: 06/02/2010
Posts: 602

 

Yes you would need to create your own logical unit that wakes up on a timer and calls the DataWriter each time.

If you are using Java you could use a java.util.Timer object to schedule your periodic task encapsulated in a  java.util.TimerTask

Gerardo

 

Offline
Last seen: 12 years 2 months ago
Joined: 09/11/2012
Posts: 4

Thanks, Gerardo.