Examples of IIdleConnectionCallback


Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

    IConnection connection = this.connectionContext.getConnection();
    if (ConnectionLogger.isEnabledFull()) {
      ConnectionLogger.logKeepAlive(this.getClass().getSimpleName(), connection.getHost(), 0, this.connectionContext
          .getConnection().getNrOfIdlesInSequence());
    }
    IIdleConnectionCallback callback = this.connectionContext.getIdleCallback();
    callback.connectionIdle(connection);
  }
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

    ConnectionFactory connectionFactory = AppContext.getConnectionFactory();
    IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
    connection.setHost(TestConstants.HOST);
    connection.setPort(TestConstants.PORT_SC0_HTTP);
    connection.setIdleTimeoutSeconds(0); // idle timeout inactive
    IIdleConnectionCallback idleCallback = new IdleCallback();
    ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
    connection.setContext(connectionContext);
    String ldt = DateTimeUtility.getCurrentTimeZoneMillis();

    SCMPMessage message = new SCMPMessage(SCMPVersion.CURRENT);
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

    ConnectionFactory connectionFactory = AppContext.getConnectionFactory();
    IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
    connection.setHost(TestConstants.HOST);
    connection.setPort(TestConstants.PORT_SC0_HTTP);
    connection.setIdleTimeoutSeconds(0); // idle timeout inactive
    IIdleConnectionCallback idleCallback = new IdleCallback();
    ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
    connection.setContext(connectionContext);
    String ldt = DateTimeUtility.getCurrentTimeZoneMillis();

    SCMPMessage message = new SCMPMessage();
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

      IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
      connections[i] = connection;
      connection.setHost(TestConstants.HOST);
      connection.setPort(TestConstants.PORT_SC0_HTTP);
      connection.setIdleTimeoutSeconds(0);
      IIdleConnectionCallback idleCallback = new IdleCallback();
      ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
      connection.setContext(connectionContext);
      connection.connect();
      TestCallback cbk = new TestCallback();
      connection.send(message, cbk);
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

    ConnectionFactory connectionFactory = AppContext.getConnectionFactory();
    IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
    connection.setHost(TestConstants.HOST);
    connection.setPort(TestConstants.PORT_SC0_HTTP);
    connection.setIdleTimeoutSeconds(0); // idle timeout inactive
    IIdleConnectionCallback idleCallback = new IdleCallback();
    ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
    connection.setContext(connectionContext);
    String ldt = DateTimeUtility.getCurrentTimeZoneMillis();

    SCMPMessage message = new SCMPMessage(SCMPVersion.CURRENT);
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

      IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
      connections[i] = connection;
      connection.setHost(TestConstants.HOST);
      connection.setPort(TestConstants.PORT_SC0_HTTP);
      connection.setIdleTimeoutSeconds(0);
      IIdleConnectionCallback idleCallback = new IdleCallback();
      ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
      connection.setContext(connectionContext);
      connection.connect();
      TestCallback cbk = new TestCallback();
      connection.send(message, cbk);
View Full Code Here

Examples of org.serviceconnector.net.connection.IIdleConnectionCallback

    ConnectionFactory connectionFactory = AppContext.getConnectionFactory();
    IConnection connection = connectionFactory.createConnection(ConnectionType.NETTY_HTTP.getValue());
    connection.setHost(TestConstants.HOST);
    connection.setPort(TestConstants.PORT_SC0_HTTP);
    connection.setIdleTimeoutSeconds(0); // idle timeout inactive
    IIdleConnectionCallback idleCallback = new IdleCallback();
    ConnectionContext connectionContext = new ConnectionContext(connection, idleCallback, 0);
    connection.setContext(connectionContext);
    String ldt = DateTimeUtility.getCurrentTimeZoneMillis();

    SCMPMessage message = new SCMPMessage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.