Package lineage2.commons.threading

Examples of lineage2.commons.threading.RunnableImpl


  public void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    super.onEvtDead(killer);
    actor.deleteMe();
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
View Full Code Here


          getZone("[soi_hos_attack_attackup_5]").setActive(false);
          spawnRoom(6);
        }
      }
      else if(self.getNpcId() == Yehan)
        ThreadPoolManager.getInstance().schedule(new RunnableImpl(){
          @Override
          public void runImpl() throws Exception
          {
            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
View Full Code Here

  public void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    super.onEvtDead(killer);
    actor.deleteMe();
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18601);
View Full Code Here

  @Override
  public L2LoginClient create(MMOConnection<L2LoginClient> con)
  {
    final L2LoginClient client = new L2LoginClient(con);
    client.sendPacket(new Init(client));
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        client.closeNow(false);
View Full Code Here

  /**
   * Constructor for ThreadPoolManager.
   */
  private ThreadPoolManager()
  {
    scheduleAtFixedRate(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        executor.purge();
View Full Code Here

    {
      _teleportSelfTimer = System.currentTimeMillis();
      if (Rnd.chance(20))
      {
        actor.doCast(SkillTable.getInstance().getInfo(4222, 1), actor, false);
        ThreadPoolManager.getInstance().schedule(new RunnableImpl()
        {
          @Override
          public void runImpl()
          {
            actor.teleToLocation(_locations[Rnd.get(_locations.length)]);
View Full Code Here

    {
      _teleportSelfTimer = System.currentTimeMillis();
      if (Rnd.chance(20))
      {
        actor.doCast(SkillTable.getInstance().getInfo(4222, 1), actor, false);
        ThreadPoolManager.getInstance().schedule(new RunnableImpl()
        {
          @Override
          public void runImpl()
          {
            actor.teleToLocation(_locations[Rnd.get(_locations.length)]);
View Full Code Here

  /**
   * Constructor for SessionManager.
   */
  private SessionManager()
  {
    ThreadPoolManager.getInstance().scheduleAtFixedRate(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        lock.lock();
View Full Code Here

    {
      spawnTask.cancel(false);
      spawnTask = null;
    }
    final DelusionChamberRoom riftRoom = DelusionChamberManager.getInstance().getRoom(_roomType, room);
    spawnTask = ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        for (SimpleSpawner s : riftRoom.getSpawns())
View Full Code Here

    if (teleporterTask != null)
    {
      teleporterTask.cancel(false);
      teleporterTask = null;
    }
    teleporterTask = ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        if ((jumps_current < 4) && (getPlayersInside(true) > 0))
View Full Code Here

TOP

Related Classes of lineage2.commons.threading.RunnableImpl

Copyright © 2018 www.massapicom. 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.