[zeromq-dev] How to setup timeout in for stages in multi threaded client server app

Meir Yanovich meiryanovich at gmail.com
Sat Feb 2 07:54:46 CET 2013


i thing you better there allot of java programmers out there that looking
to work with zeromq
why not using lang,Object ?
you can just cast it to the right object . its done allot in java
frameworks.

On Sat, Feb 2, 2013 at 8:11 AM, Min <miniway at gmail.com> wrote:

> Meir,
>
> Right, we need to elaborate the documentation.
>
> Due to the language limitation, JZMQ (jncluding jeromq) could not use
> the same signature, say setSockOpt. Because some options are string, some
> are integers and the others are boolean. We could use java.lang.Object but
> most of java developers might not like it.
>
> Anyhow documentation is still important and we need to publish the java
> doc somewhere under the api.zeomq.org. Most of all we might need
> volunteers for better documentation.
>
> Thank you for pointing a weakness.
>
> Thanks
> Min
>
> 2013년 2월 2일 토요일에 Meir Yanovich님이 작성:
>
> i do , but im using the java binding , and its luck of documentation.
>> i mean the java part . the commands are not the same as the C api .
>> this is my main problem .
>> from looking on the web i see im not the only one that has this problem
>> with the JAVA api
>>
>> On Fri, Feb 1, 2013 at 6:51 PM, Pieter Hintjens <ph at imatix.com> wrote:
>>
>> Meir,
>>
>> Before you ask questions about using 0MQ, you should read the Guide
>> fully and digest at least the first chapters.
>>
>> -Pieter
>>
>> On Fri, Feb 1, 2013 at 3:16 PM, Meir Yanovich <meiryanovich at gmail.com>
>> wrote:
>> > can some one please tell me why setting this :
>> >   m_context = ZMQ.context(1);
>> >   m_socket = m_context.socket(ZMQ.REQ);
>> >   m_socket.setReceiveTimeOut(2000);
>> >   m_socket.setSendTimeOut(2000);
>> >
>> > just dosnt work ?
>> > also does the input is in seconds or milliseconds ? there is no info
>> about
>> > java
>> >
>> >
>> >
>> > On Fri, Feb 1, 2013 at 3:52 PM, Meir Yanovich <meiryanovich at gmail.com>
>> > wrote:
>> >>
>> >> ok reading the ZMQ.java where all the documentation is ....
>> >>
>> >>
>> >> On Fri, Feb 1, 2013 at 3:31 PM, Meir Yanovich <meiryanovich at gmail.com>
>> >> wrote:
>> >>>
>> >>> thanks for the link , but i having trouble to find how to do this in
>> the
>> >>> java wrapper .
>> >>> i dont see any "zmq_setsockopt" in  java .
>> >>> what i use in java to init  is simple :
>> >>>  m_context = ZMQ.context(1);
>> >>>  m_socket = m_context.socket(ZMQ.REQ);
>> >>>
>> >>>
>> >>> On Fri, Feb 1, 2013 at 12:42 PM, Pieter Hintjens <ph at imatix.com>
>> wrote:
>> >>>>
>> >>>> Here's a simple example:
>> >>>> https://github.com/zeromq/libzmq/blob/master/tests/test_timeo.cpp
>> >>>>
>> >>>> On Fri, Feb 1, 2013 at 11:10 AM, Meir Yanovich <
>> meiryanovich at gmail.com>
>> >>>> wrote:
>> >>>> > can you please point me to some example .
>> >>>> > thanks
>> >>>> >
>> >>>> >
>> >>>> > On Fri, Feb 1, 2013 at 11:10 AM, Pieter Hintjens <ph at imatix.com>
>> >>>> > wrote:
>> >>>> >>
>> >>>> >> You can set send/receive timeouts using the ZMQ_SNDTIMEO and
>> >>>> >> ZMQ_RCVTIMEO socket options.
>> >>>> >>
>> >>>> >> -Pieter
>> >>>> >>
>> >>>> >> On Fri, Feb 1, 2013 at 9:18 AM, Meir Yanovich
>> >>>> >> <meiryanovich at gmail.com>
>> >>>> >> wrote:
>> >>>> >> > hello all
>> >>>> >> > i want to set few timeouts levels in ZeroMQ Java app .
>> >>>> >> > 1. request timeout .
>> >>>> >> > 2.response timeout
>> >>>> >> > 3. round trip time out .
>> >>>> >> > can you please point me on the right way to do this ?
>> >>>> >> > Thanks
>> >>>> >> >
>> >>>> >> > _______________________________________________
>> >>>> >> > zeromq-dev mailing list
>> >>>> >> > zeromq-dev at lists.zeromq.org
>> >>>> >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>> >>>> >> >
>> >>>> >> _______________________________________________
>> >>>> >> zeromq-dev mailing list
>> >>>> >> zeromq-dev at lists.zeromq.org
>> >>>> >> http://lists.zeromq.org/mailman/listinfo/zeromq-d<http://lists.zeromq.org/mailman/listinfo/zeromq-dev>
>>
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130202/f0ea29c1/attachment.htm>


More information about the zeromq-dev mailing list