Class Ticket
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.util.locker.Ticket
-
- All Implemented Interfaces:
Serializable
,Comparable<Ticket>
public final class Ticket extends Object implements Comparable<Ticket>, Serializable
This class define a ticket for the TicketLocker.- Since:
- 1.1
- Author:
- Laurent Jourdren
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Ticket ticket)
boolean
equals(Object o)
long
getCreationTime()
String
getDescription()
long
getLastActiveTime()
int
getPid()
long
getThreadId()
int
hashCode()
static int
hashCode(Object... objects)
boolean
isWorking()
void
setWorking(boolean working)
String
toString()
void
updateLastActiveTime()
-
-
-
Method Detail
-
getPid
public int getPid()
-
getThreadId
public long getThreadId()
-
getCreationTime
public long getCreationTime()
-
getDescription
public String getDescription()
-
getLastActiveTime
public long getLastActiveTime()
-
isWorking
public boolean isWorking()
-
setWorking
public void setWorking(boolean working)
-
updateLastActiveTime
public void updateLastActiveTime()
-
compareTo
public int compareTo(Ticket ticket)
- Specified by:
compareTo
in interfaceComparable<Ticket>
-
hashCode
public static int hashCode(Object... objects)
-
-