class Dispatcher extends api.Dispatcher
The only Dispatcher provided by the timber backend. It should handle most of your dispatching needs. Instances of this class are thread-safe. You can change the configuration at any time.
Until the first setConfiguration() call, dispatching is done using the initial configuration specified in the constructor. If you don't specify a configuration, the DefaultConfiguration is used.
If you are concerned about the performance of your dispatcher, you should look into specifying a cacheKeyExtractor to the constructor. If you're not concerned about performance, you can safely ignore it.
- Alphabetic
- By Inheritance
- Dispatcher
- Dispatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Dispatcher(initialConfiguration: Configuration = DefaultConfiguration, cacheKeyExtractor: Option[CacheKeyExtractor] = None)
- initialConfiguration
the configuration used until another call to setConfiguration()
- cacheKeyExtractor
the optional CacheKeyExtractor for caching constrained configurations (None disables caching)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
configure(fn: (SubgraphWithOutputs[MutableConditionVertex]) ⇒ Unit): Unit
Enables configuring this dispatcher using a thunk which is passed the root of the configuration.
Enables configuring this dispatcher using a thunk which is passed the root of the configuration.
- fn
the thunk which takes the root vertex of the configuration and adds routes to receivers
-
def
dispatch(entry: Entry): Unit
Dispatch an entry to the appropriate destination(s).
Dispatch an entry to the appropriate destination(s).
- entry
the entry to be dispatched.
- Definition Classes
- Dispatcher → Dispatcher
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setConfiguration(configuration: Configuration): Unit
Sets the configuration for this dispatcher.
Sets the configuration for this dispatcher. This call is safe to call without concurrency protection. Entries dispatched before the call will use the old configuration and entries dispatched after the call will be dispatched using the new configuration.
- configuration
the new configuration to be used by this dispatcher
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()