Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opensolaris.os.dtrace
Class ConsumerEvent

    java.lang.Object
      java.util.EventObject
          org.opensolaris.os.dtrace.ConsumerEvent

All Implemented Interfaces:
  java.io.Serializable

    public class ConsumerEvent

extends java.util.EventObject

An event indicating a state change in a DTrace `Consumer`.

See Also:
  `ConsumerListener`, Serialized Form

Field Summary

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`ConsumerEvent(java.lang.Object source, long timeNanos)` Creates a consumer event with the given source `Consumer` and nanosecond timestamp.

Method Summary
`long` | `getTimestamp()` Gets the nanosecond timestamp of this event.

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ConsumerEvent

    public ConsumerEvent(java.lang.Object source,
                         long timeNanos)

  Creates a consumer event with the given source `Consumer` and nanosecond timestamp.

  Parameters:
    `source` - the `Consumer` that is the source of the event
    `timeNanos` - nanosecond timestamp of this event

Method Detail

### getTimestamp

    public long getTimestamp()

  Gets the nanosecond timestamp of this event.

  Returns:
    nanosecond timestamp of the event on the system where the consumer opened a native DTrace library handle

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD