JIVE Platform
Release 0.3.1

edu.bsu.cs.jive.util
Interface ThreadID


public interface ThreadID

Uniquely identifies a thread.

Each thread in Java has a unique identifier that never changes, but a thread's name can change.


Nested Class Summary
static interface ThreadID.Exporter
          A reverse-builder for thread IDs.
static interface ThreadID.Importer
          A builder for thread IDs.
 
Method Summary
 void export(ThreadID.Exporter exporter)
          Write this thread id to the given exporter.
 long getId()
          Get the unique identifier for this thread.
 String getName()
          Get the name for this thread.
 

Method Detail

getId

long getId()
Get the unique identifier for this thread. This is the same identifier used by a Thread.

Returns:
thread identification number
See Also:
Thread.getId()

getName

String getName()
Get the name for this thread. This name describes the thread, but it is not necessarily either unique or constant.

Returns:
thread name
See Also:
Thread.getName()

export

void export(ThreadID.Exporter exporter)
Write this thread id to the given exporter.

Parameters:
exporter -

JIVE Platform
Release 0.3.1