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