public class ClonedLibrarySessionInfo extends Object
Constructor and Description |
---|
ClonedLibrarySessionInfo(ClonedLibrarySessionManager mgr)
Construct a ClonedLibrarySessionInfo.
|
Modifier and Type | Method and Description |
---|---|
LibrarySession |
getMasterSession()
Returns the master session used to clone the related session.
|
Date |
getReservationDate()
Returns the timestamp of when the session was reserved,
or null if unreserved.
|
long |
getReservationDuration()
Returns the duration (in milliseconds) of the current reservation,
or 0 if the session is not reserved.
|
Thread |
getReservingThread()
Returns the thread which is currently reserving this session,
or null if unreserved.
|
boolean |
isReserved()
Returns indication as to whether the session is currently reserved.
|
void |
markReserved()
Marks info to indicate a reservation.
|
void |
markUnreserved()
Marks info to indicate that a reservation has been released.
|
String |
toString()
Returns String representation of this instance.
|
public ClonedLibrarySessionInfo(ClonedLibrarySessionManager mgr) throws IfsException
mgr
- the session managerIfsException
- if operation fails.public void markReserved()
public void markUnreserved()
public LibrarySession getMasterSession()
public boolean isReserved()
public Thread getReservingThread()
public Date getReservationDate()
public long getReservationDuration()
Copyright © 2023. All rights reserved.