Examples of ConnectionEntry


Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      long ttl = server.getConfiguration().getConnectionTTLOverride();

      if (ttl != -1)
      {
         return new ConnectionEntry(conn, null, System.currentTimeMillis(), ttl);
      }
      else
      {
         // Default to 1 minute - which is same as core protocol

         return new ConnectionEntry(conn, null, System.currentTimeMillis(), 1 * 60 * 1000);
      }
   }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (config.getConnectionTTLOverride() != -1)
      {
         ttl = config.getConnectionTTLOverride();
      }

      final ConnectionEntry entry = new ConnectionEntry(rc, connectionExecutor, System.currentTimeMillis(), ttl);

      final Channel channel0 = rc.getChannel(0, -1);

      channel0.setHandler(new ChannelHandler()
      {
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      return started;
   }

   public RemotingConnection removeConnection(final Object remotingConnectionID)
   {
      ConnectionEntry entry = connections.remove(remotingConnectionID);

      if (entry != null)
      {
         return entry.connection;
      }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (pmgr == null)
      {
         throw new IllegalArgumentException("Unknown protocol " + protocol);
      }

      ConnectionEntry entry = pmgr.createConnectionEntry(connection);

      connections.put(connection.getID(), entry);

      if (config.isBackup())
      {
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      }
   }

   public void connectionDestroyed(final Object connectionID)
   {
      ConnectionEntry conn = connections.get(connectionID);

      if (conn != null)
      {
         // Bit of a hack - find a better way to do this
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

         this.manager = manager;
      }

      public void bufferReceived(final Object connectionID, final HornetQBuffer buffer)
      {
         ConnectionEntry conn = connections.get(connectionID);

         if (conn != null)
         {
            conn.connection.bufferReceived(connectionID, buffer);
         }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      return started;
   }

   public RemotingConnection removeConnection(final Object remotingConnectionID)
   {
      ConnectionEntry entry = connections.remove(remotingConnectionID);

      if (entry != null)
      {
         return entry.connection;
      }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (pmgr == null)
      {
         throw new IllegalArgumentException("Unknown protocol " + protocol);
      }

      ConnectionEntry entry = pmgr.createConnectionEntry(connection);

      connections.put(connection.getID(), entry);

      if (config.isBackup())
      {
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      }
   }

   public void connectionDestroyed(final Object connectionID)
   {
      ConnectionEntry conn = connections.get(connectionID);

      if (conn != null)
      {
         // Bit of a hack - find a better way to do this
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

         this.manager = manager;
      }

      public void bufferReceived(final Object connectionID, final HornetQBuffer buffer)
      {
         ConnectionEntry conn = connections.get(connectionID);

         if (conn != null)
         {
            conn.connection.bufferReceived(connectionID, buffer);
         }
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.