Exemplo n.º 1
0
            public void Conclude()
            {
                if (null == _aeron)
                {
                    _aeron = Adaptive.Aeron.Aeron.Connect(
                        new Aeron.Aeron.Context()
                        .AeronDirectoryName(_aeronDirectoryName)
                        .ErrorHandler(_errorHandler));
                    _ownsAeronClient = true;
                }

                if (null == _idleStrategy)
                {
                    _idleStrategy = new BackoffIdleStrategy(1, 10, 1, 1);
                }

                if (null == _credentialsSupplier)
                {
                    _credentialsSupplier = new NullCredentialsSupplier();
                }

                if (null == _sessionMessageListener)
                {
                    _sessionMessageListener = new MissingSessionMessageListner();
                }
            }
Exemplo n.º 2
0
            public void Conclude()
            {
                if (null == _aeron)
                {
                    _aeron           = Adaptive.Aeron.Aeron.Connect(new Aeron.Aeron.Context().AeronDirectoryName(_aeronDirectoryName));
                    _ownsAeronClient = true;
                }

                if (null == _idleStrategy)
                {
                    _idleStrategy = new BackoffIdleStrategy(1, 10, 1, 1);
                }

                if (null == _lock)
                {
                    _lock = new ReentrantLock();
                }

                if (null == _credentialsSupplier)
                {
                    _credentialsSupplier = new NullCredentialsSupplier();
                }
            }
Exemplo n.º 3
0
 /// <summary>
 /// Set the <seealso cref="ICredentialsSupplier"/> to be used for authentication with the cluster.
 /// </summary>
 /// <param name="credentialsSupplier"> to be used for authentication with the cluster. </param>
 /// <returns> this for fluent API. </returns>
 public Context CredentialsSupplier(ICredentialsSupplier credentialsSupplier)
 {
     _credentialsSupplier = credentialsSupplier;
     return(this);
 }