Examples of invalidate()


Examples of flex.messaging.FlexSession.invalidate()

            List sessions = flexClient.getFlexSessions();
            for (Iterator iter = sessions.iterator(); iter.hasNext();)
            {
                FlexSession session = (FlexSession)iter.next();
                if (session instanceof HttpFlexSession)
                    session.invalidate();
            }
           
            // Return an error to the client.
            DuplicateSessionException e = new DuplicateSessionException();
            e.setMessage(ERR_MSG_DUPLICATE_SESSIONS_DETECTED);
View Full Code Here

Examples of flex.messaging.HttpFlexSession.invalidate()

            }
        }
       
        // And optionally invalidate the session.
        if (session.isValid() && isInvalidateSessionOnDisconnect())
            session.invalidate(false /* don't recreate */);

        return super.handleChannelDisconnect(disconnectCommand);
    }

    protected void validateEndpointProtocol()
View Full Code Here

Examples of flex.messaging.MessageClient.invalidate()

    return messageClients.keySet()
  }
 
  public void invalidateMessageClientForSubscriber(String subscriberID) {
    MessageClient messageClient = messageClients.get(subscriberID);
    messageClient.invalidate(true);
    }
   
    public void invalidateFlexClientForSubscriber(String subscriberID) {
      MessageClient messageClient = messageClients.get(subscriberID);
    messageClient.getFlexClient().invalidate();
View Full Code Here

Examples of in.partake.model.dao.PartakeConnection.invalidate()

        PartakeConnection con = dbService.getConnection();
        try {
            return doExecute(con, dbService.getDAOs());
        } finally {
            con.invalidate();
        }
    }

    protected abstract T doExecute(PartakeConnection con, IPartakeDAOs daos) throws DAOException, PartakeException;
}
View Full Code Here

Examples of io.undertow.server.session.Session.invalidate()

        @Override
        public void invalidate(HttpServerExchange exchange) {
            Session session = this.session.getSessionManager().getSession(exchange, new SimpleSessionConfig(this.session.getId()));
            if (session != null) {
                session.invalidate(exchange);
            }
        }

        @Override
        public String changeSessionId(HttpServerExchange exchange, SessionConfig config) {
View Full Code Here

Examples of java.awt.Component.invalidate()

    Component c = new Component(){};
    f.add(c);
    f.setSize(100, 100);
    f.setVisible(true);

    c.invalidate();
    h.check(!c.isValid());
    c.validate();
    h.check(c.isValid());
  }
View Full Code Here

Examples of java.awt.Container.invalidate()

        final int w = awtRoot.getWidth();
        desktop.setBounds(0, 0, w, h - controlBarHeight);
        awtRoot.add(controlBar);
        controlBar.setBounds(0, h - controlBarHeight, w, controlBarHeight);

        awtRoot.invalidate();
        awtRoot.repaint();
        System.out.println("controlBar.bounds=" + controlBar.getBounds());
        System.out.println("desktop.bounds=" + desktop.getBounds());

        // Update desktopmanager
View Full Code Here

Examples of java.awt.Polygon.invalidate()

        Polygon pg = new Polygon(new int[]{1, 2, 3}, new int[]{4, 5, 6}, 3);
        assertEquals(new Rectangle(1, 4, 2, 2), pg.getBounds());
        pg.xpoints[0] = 0;
        pg.ypoints[0] = -1;
        assertEquals(new Rectangle(1, 4, 2, 2), pg.getBounds());
        pg.invalidate();
        assertEquals(new Rectangle(0, -1, 3, 7), pg.getBounds());
    }

    public void testAddPoint() {
        Polygon pg = new Polygon(new int[]{1, 2, 3, 4, 5, 6}, new int[]{7, 8, 9, 10, 11, 12}, 3);
View Full Code Here

Examples of java.awt.Window.invalidate()

          int newW = Math.max(1, wind.getWidth()-xDelta);
          int newH = Math.max(1, wind.getHeight()+yDelta);
          wind.setBounds(newPos.x, wind.getY(), newW, newH);
        }
        // invalidate()/validate() needed pre-1.6.
        wind.invalidate();
        wind.validate();
      }
      origPos.setLocation(newPos);
    }
View Full Code Here

Examples of javax.jcache.CacheAccess.invalidate()

       
      boolean isInvalidate = false;           
    try{
      CacheAccess access = factory.getAccess(region);
      if(access.isPresent(id)){             
        access.invalidate(id);
        //access.destroy(id);
        isInvalidate = true;
        logger.log(Level.INFO,
                   Messages.format("CacheManager.remove",id));
      }     
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.