EldoS
MsgConnect home / Documentation / HttpTransportClient.AttemptsToConnect property
Navigation
Web site
Support
Table Of Contents

Java ME 


HttpTransportClient.AttemptsToConnect

HttpTransportClient     See also    


Defines how much time the transport should try to connect to remote host and send the message.

Declaration

[Java ME]
    public void setAttemptsToConnect(int attemptsToConnect);
    public int getAttemptsToConnect();

Description

    This property defines how much times the transport will try to re-connect if there is an error in connecting to the remote host or when transferring the data. Use 0 to try until the message is delivered or the transport is stopped (in other words, 0 = unlimited). The interval between attempts is defined by AttemptsInterval property.
    It makes sense to set the value to 3 or more attempts. This allows recovery of the broken connection without marking the message being delivered as failed.

See also:     AttemptsInterval    

 
Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2005, EldoS Corporation