Examples of CloseListener


Examples of games.stendhal.client.gui.InternalWindow.CloseListener

     * Register a listener for window closing so that we can
     * drop the reference to the closed window and let the
     * garbage collector claim it.
     */
    if (addListener && (slotWindow != null)) {
      slotWindow.addCloseListener(new CloseListener() {
        public void windowClosed(InternalWindow window) {
          slotWindow = null;
        }
      });
    }
View Full Code Here

Examples of games.stendhal.client.gui.InternalWindow.CloseListener

       * Register a listener for window closing so that we can
       * drop the reference to the closed window and let the
       * garbage collector claim it.
       */
      if (addListener && (window != null)) {
        window.addCloseListener(new CloseListener() {
          public void windowClosed(InternalWindow window) {
            slotWindow = null;
          }
        });
      }
View Full Code Here

Examples of games.stendhal.client.gui.InternalWindow.CloseListener

     * Register a listener for window closing so that we can
     * drop the reference to the closed window and let the
     * garbage collector claim it.
     */
    if (addListener && (window != null)) {
      window.addCloseListener(new CloseListener() {
        public void windowClosed(InternalWindow window) {
          slotWindow = null;
        }
      });
    }
View Full Code Here

Examples of org.glassfish.grizzly.CloseListener

                });

                TYRUS_CONNECTION.set(grizzlyConnection, connection);
                TASK_PROCESSOR.set(grizzlyConnection, new TaskProcessor());

                grizzlyConnection.addCloseListener(new CloseListener() {
                    @Override
                    public void onClosed(Closeable closeable, ICloseType type) throws IOException {
                        // close detected on connection
                        connection.close(CloseReasons.GOING_AWAY.getCloseReason());
                        // might not be necessary, connection is going to be recycled/freed anyway
View Full Code Here

Examples of org.glassfish.grizzly.CloseListener

                    }
                });

                TYRUS_CONNECTION.set(grizzlyConnection, connection);

                grizzlyConnection.addCloseListener(new CloseListener() {
                    @Override
                    public void onClosed(Closeable closeable, ICloseType type) throws IOException {
                        connection.close(new CloseReason(CloseReason.CloseCodes.GOING_AWAY, "Close detected on connection"));
                        // might not be necessary, connection is going to be recycled/freed anyway
                        TYRUS_CONNECTION.remove(grizzlyConnection);
View Full Code Here

Examples of org.glassfish.tyrus.spi.Connection.CloseListener

            JdkWriter writer = new JdkWriter(downstreamFilter);

            ClientEngine.ClientUpgradeInfo clientUpgradeInfo = engine.processResponse(
                    tyrusUpgradeResponse,
                    writer,
                    new CloseListener() {

                        @Override
                        public void close(CloseReason reason) {
                            closeConnection(downstreamFilter);
                        }
View Full Code Here

Examples of org.hornetq.core.remoting.CloseListener

            if (acceptorUsed.getClusterConnection() != null)
            {
               acceptorUsed.getClusterConnection().addClusterTopologyListener(listener);

               rc.addCloseListener(new CloseListener()
               {
                  public void connectionClosed()
                  {
                     acceptorUsed.getClusterConnection().removeClusterTopologyListener(listener);
                  }
View Full Code Here

Examples of org.hornetq.core.remoting.CloseListener

               final boolean isCC = msg.isClusterConnection();
               if (acceptorUsed.getClusterConnection() != null)
               {
                  acceptorUsed.getClusterConnection().addClusterTopologyListener(listener, isCC);
                 
                  rc.addCloseListener(new CloseListener()
                  {
                     public void connectionClosed()
                     {
                        acceptorUsed.getClusterConnection().removeClusterTopologyListener(listener, isCC);
                     }
View Full Code Here

Examples of org.hornetq.core.remoting.CloseListener

               if (acceptorUsed.getClusterConnection() != null)
               {
                  acceptorUsed.getClusterConnection().addClusterTopologyListener(listener);
                 
                  rc.addCloseListener(new CloseListener()
                  {
                     public void connectionClosed()
                     {
                        acceptorUsed.getClusterConnection().removeClusterTopologyListener(listener);
                     }
View Full Code Here

Examples of org.hornetq.core.remoting.CloseListener

            if (acceptorUsed.getClusterConnection() != null)
            {
               acceptorUsed.getClusterConnection().addClusterTopologyListener(listener);

               rc.addCloseListener(new CloseListener()
               {
                  public void connectionClosed()
                  {
                     acceptorUsed.getClusterConnection().removeClusterTopologyListener(listener);
                  }
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.