/mbean-annotation

An easy-to-use way to expose MBean for Actor

Primary LanguageScalaApache License 2.0Apache-2.0

Mbean annotation

Build Status Codacy Badge

It provides an easy-to-use method of exposing MBean by scala macro annotation.

Usage

import com.wacai.mbean.annotation._


@mbean class ThrottleActor extends Actor {
  def receive = {
    case i: Int => count += i
  }

  var count = 0

  @attribute var threshold = 100

  @operation def isOverload = count > threshold
}

Installation

Comming soon.