public class ThreadHistoryEvent
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadHistoryEvent.OPERATION
History operation.
|
| Constructor and Description |
|---|
ThreadHistoryEvent(long aThreadId,
java.lang.String aThreadName,
ThreadHistoryEvent.OPERATION anOperation)
Creates new event.
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadHistoryEvent |
created(long threadId,
java.lang.String threadName)
Factory method to create new 'created' event.
|
static ThreadHistoryEvent |
deleted(long threadId,
java.lang.String threadName)
Factory method to create new 'deleted' event.
|
java.lang.String |
getNiceTimestamp()
Returns timestamp as ISO8601 tiemstamp string.
|
ThreadHistoryEvent.OPERATION |
getOperation() |
long |
getThreadId() |
java.lang.String |
getThreadName() |
long |
getTimestamp() |
java.lang.String |
toString() |
public ThreadHistoryEvent(long aThreadId,
java.lang.String aThreadName,
ThreadHistoryEvent.OPERATION anOperation)
aThreadId - aThreadName - anOperation - public java.lang.String toString()
toString in class java.lang.Objectpublic long getThreadId()
public java.lang.String getThreadName()
public ThreadHistoryEvent.OPERATION getOperation()
public static final ThreadHistoryEvent created(long threadId, java.lang.String threadName)
threadId - threadName - public static final ThreadHistoryEvent deleted(long threadId, java.lang.String threadName)
threadId - threadName - public long getTimestamp()
public java.lang.String getNiceTimestamp()
Copyright © 2010-2020 anotheria.net. All Rights Reserved.