package com.twitter.finagle

import java.util.concurrent.Executors
import com.twitter.concurrent.NamedPoolThreadFactory

/**
 * Package netty3 implements the bottom finagle primitives:
 * {{com.twitter.finagle.Server}} and a client transport in terms of
 * the netty3 event loop.
 *
 * Note: when {{com.twitter.finagle.builder.ClientBuilder}} and
 * {{com.twitter.finagle.builder.ServerBuilder}} are deprecated,
 * package netty3 can move into its own package, so that only the
 * (new-style) clients and servers that depend on netty3 bring it in.
 */
package object netty3 {
  val Executor = Executors.newCachedThreadPool(
    new NamedPoolThreadFactory("finagle/netty3", true/*daemon*/))

  object param {
    /**
     * A class eligible for configuring a netty3 timer.
     */
    case class Netty3Timer(timer: org.jboss.netty.util.Timer)
    implicit object netty3Timer extends Stack.Param[Netty3Timer] {
      val default = Netty3Timer(util.DefaultTimer)
    }
  }
}

package com.twitter.finagle

import java.util.concurrent.Executors
import com.twitter.concurrent.NamedPoolThreadFactory

/**
 * Package netty3 implements the bottom finagle primitives:
 * {{com.twitter.finagle.Server}} and a client transport in terms of
 * the netty3 event loop.
 *
 * Note: when {{com.twitter.finagle.builder.ClientBuilder}} and
 * {{com.twitter.finagle.builder.ServerBuilder}} are deprecated,
 * package netty3 can move into its own package, so that only the
 * (new-style) clients and servers that depend on netty3 bring it in.
 */
package object netty3 {
  val Executor = Executors.newCachedThreadPool(
    new NamedPoolThreadFactory("finagle/netty3", true/*daemon*/))

  object param {
    /**
     * A class eligible for configuring a netty3 timer.
     */
    case class Netty3Timer(timer: org.jboss.netty.util.Timer)
    implicit object Netty3Timer extends Stack.Param[Netty3Timer] {
      val default = Netty3Timer(util.DefaultTimer)
    }
  }
}

Fix a Netty3Timer capitalization bug Problem Some projects get NoClassDef found error when run with pants. This is concerning because they compiled successfully, even with all of the right dependencies (building off of master).
[split] finagle-core: Fix a Netty3Timer capitalization bug Problem Some projects get NoClassDef found error when run with pants.  This is concerning because they compiled successfully, even with all of the right dependencies (building off of master).

Solution
Renamed netty3Timer to Netty3Timer (a typo)

Result
We no longer get the NoClassDef error.

RB_ID=330261
NO-QUEUE=true
