Examples of block()


Examples of lineage2.gameserver.model.instances.NpcInstance.block()

  {
    super.onEvtSpawn();
    final NpcInstance actor = getActor();
    iced = true;
    actor.setNpcState(1);
    actor.block();
    final Reflection r = actor.getReflection();
    if ((r != null) && (r.getPlayers() != null))
    {
      for (Player p : r.getPlayers())
      {
View Full Code Here

Examples of open.dolphin.client.BlockGlass.block()

    public void blockHistoryTable(boolean busy) {
        BlockGlass blockGlass = (BlockGlass) context.getFrame().getGlassPane();
        if (busy) {
            view.getTable().addKeyListener(blockKeyListener);
            blockGlass.setText("読み込み中");
            blockGlass.block();
        } else {
            view.getTable().removeKeyListener(blockKeyListener);
            blockGlass.setText("");
            blockGlass.unblock();
        }
View Full Code Here

Examples of org.apache.bookkeeper.client.SyncCounter.block()

    asyncOpenLedger(lId, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getrc() != BKException.Code.OK)
      throw BKException.create(counter.getrc());

    return counter.getLh();
  }
View Full Code Here

Examples of org.apache.bookkeeper.client.SyncCounter.block()

    asyncCreateLedger(ensSize, qSize, digestType, passwd, this, counter);

    /*
     * Wait
     */
    counter.block(0);
    if (counter.getLh() == null) {
      LOG.error("ZooKeeper error: " + counter.getrc());
      throw BKException.create(Code.ZKException);
    }

View Full Code Here

Examples of org.apache.qpid.server.AMQChannel.block()

        TabularData channels = _mbean.channels();
        CompositeData chan4result = channels.get(new Integer[]{4});
        assertNotNull(chan4result);
        assertEquals("Flow should not have been blocked", false, chan4result.get(blocking));
       
        channel4.block(queue);
        channels = _mbean.channels();
        chan4result = channels.get(new Integer[]{4});
        assertNotNull(chan4result);
        assertEquals("Flow should have been blocked", true, chan4result.get(blocking));   
       
View Full Code Here

Examples of org.apache.servicemix.jbi.container.SpringJBIContainer.block()

                }
            });
            //this is for classworlds 1.1 launcher which use System.exit()
            //explicitly after lauch Main. To avoid System.exit() being invoked
            //during servicemix runing, we need keep ServiceMix main thread alive.
            container.block();
           
        } catch (Exception e) {
            System.out.println("Caught: " + e);
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.sling.event.impl.Barrier.block()

                new EventHandler() {
                    @Override
                    public void handleEvent(Event event) {
                        JobUtil.acknowledgeJob(event);
                        JobUtil.finishedJob(event);
                        cb.block();
                    }

                 });

        try {
View Full Code Here

Examples of org.apache.sling.event.impl.Barrier.block()

                 });

        try {
            this.eventAdmin.sendEvent(getJobEvent(null));
            assertTrue("No event received in the given time.", cb.block(5));
            cb.reset();
            assertFalse("Unexpected event received in the given time.", cb.block(5));
        } finally {
            reg.unregister();
        }
View Full Code Here

Examples of org.apache.sling.event.impl.Barrier.block()

        try {
            this.eventAdmin.sendEvent(getJobEvent(null));
            assertTrue("No event received in the given time.", cb.block(5));
            cb.reset();
            assertFalse("Unexpected event received in the given time.", cb.block(5));
        } finally {
            reg.unregister();
        }
    }
View Full Code Here

Examples of org.apache.sling.event.impl.Barrier.block()

        final ServiceRegistration jcReg = this.registerJobConsumer(TOPIC,
                new JobConsumer() {

                    @Override
                    public JobResult process(Job job) {
                        cb.block();
                        return JobResult.OK;
                    }
                });
        try {
            final JobManager jobManager = this.getJobManager();
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.