|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lmax.api.profile.Timer
public class Timer
Factory class to construct timers for callback methods.
Constructor Summary | |
---|---|
Timer()
|
Method Summary | |
---|---|
static ExecutionEventListener |
create(ExecutionEventListener listener,
java.lang.String name,
TimingListener timingListener)
Construct a timer for execution events. |
static InstructionRejectedEventListener |
create(InstructionRejectedEventListener listener,
java.lang.String name,
TimingListener timingListener)
Construct a timer for instruction rejected events. |
static OrderBookEventListener |
create(OrderBookEventListener listener,
java.lang.String name,
TimingListener timingListener)
Construct a timer for order book events. |
static OrderEventListener |
create(OrderEventListener listener,
java.lang.String name,
TimingListener timingListener)
Construct a timer for order events. |
static ExecutionEventListener |
forExecutionEvents(ExecutionEventListener listener)
Construct an MBean based timer for execution events. |
static InstructionRejectedEventListener |
forInstructionRejectedEvents(InstructionRejectedEventListener listener)
Construct an MBean based timer for instruction rejected events. |
static OrderBookEventListener |
forOrderBookEvents(OrderBookEventListener listener)
Construct an MBean based timer for order book events. |
static OrderEventListener |
forOrderEvents(OrderEventListener listener)
Construct an MBean based timer for order events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timer()
Method Detail |
---|
public static OrderEventListener create(OrderEventListener listener, java.lang.String name, TimingListener timingListener)
listener
- The real listener to delegate events to.name
- The name associated to this timer.timingListener
- The callback for timing events.
public static OrderEventListener forOrderEvents(OrderEventListener listener)
listener
- The real listener to delgate too.
public static InstructionRejectedEventListener create(InstructionRejectedEventListener listener, java.lang.String name, TimingListener timingListener)
listener
- The real listener to delegate events to.name
- The name associated to this timer.timingListener
- The callback for timing events.
public static InstructionRejectedEventListener forInstructionRejectedEvents(InstructionRejectedEventListener listener)
listener
- The real listener to delgate too.
public static OrderBookEventListener create(OrderBookEventListener listener, java.lang.String name, TimingListener timingListener)
listener
- The real listener to delegate events to.name
- The name associated to this timer.timingListener
- The callback for timing events.
public static OrderBookEventListener forOrderBookEvents(OrderBookEventListener listener)
listener
- The real listener to delgate too.
public static ExecutionEventListener create(ExecutionEventListener listener, java.lang.String name, TimingListener timingListener)
listener
- The real listener to delegate events to.name
- The name associated to this timer.timingListener
- The callback for timing events.
public static ExecutionEventListener forExecutionEvents(ExecutionEventListener listener)
listener
- The real listener to delgate too.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |