Class BaseSenderConnectionManager

    • Field Detail

      • client

        protected final com.cloudhopper.smpp.impl.DefaultSmppClient client
      • sessionHandler

        protected final com.cloudhopper.smpp.SmppSessionHandler sessionHandler
      • maxTryCount

        protected final int maxTryCount
        Number of attempts to reconnect if smpp session closed
      • session

        protected com.cloudhopper.smpp.SmppSession session
    • Constructor Detail

      • BaseSenderConnectionManager

        public BaseSenderConnectionManager​(com.cloudhopper.smpp.impl.DefaultSmppClient client,
                                           BaseSmppSessionConfiguration configuration,
                                           int maxTryCount)
    • Method Detail

      • getSession

        public com.cloudhopper.smpp.SmppSession getSession()
        Description copied from interface: ConnectionManager
        Get current or open new smpp connection session
        Specified by:
        getSession in interface ConnectionManager
        Returns:
        smpp session
      • bind

        protected boolean bind()
        Binding new smpp session
        Returns:
        true - if binding was successfully, false - otherwise
        See Also:
        DefaultSmppClient.bind(SmppSessionConfiguration, SmppSessionHandler)