org.gridkit.jvmtool.event
Class EventDecorator

java.lang.Object
  extended by org.gridkit.jvmtool.event.EventDecorator

public class EventDecorator
extends Object

This utility class creates dynamic wrapper over Event and replaces tags and counter with mutable versions;

Author:
Alexey Ragozin (alexey.ragozin@gmail.com)

Constructor Summary
EventDecorator()
           
 
Method Summary
 SimpleCounterCollection counters()
           
 SimpleTagCollection tags()
           
 void timestamp(long timestamp)
           
<T extends Event>
T
wrap(T event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDecorator

public EventDecorator()
Method Detail

wrap

public <T extends Event> T wrap(T event)

timestamp

public void timestamp(long timestamp)

tags

public SimpleTagCollection tags()

counters

public SimpleCounterCollection counters()


Copyright © 2019. All Rights Reserved.