Package com.pixelmed.transfermonitor
Class TransferMonitoringContext
- java.lang.Object
-
- com.pixelmed.transfermonitor.TransferMonitoringContext
-
public class TransferMonitoringContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TransferMonitoringContext(java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the monitoring context since no more transfers are expected.booleanequals(java.lang.Object obj)inthashCode()booleanisClosed()voidsetDescription(java.lang.String description)Update the description, such as when we have received more information like the name of the sender.java.lang.StringtoString()
-
-
-
Method Detail
-
setDescription
public void setDescription(java.lang.String description)
Update the description, such as when we have received more information like the name of the sender.
- Parameters:
description- new description
-
close
public void close()
Close the monitoring context since no more transfers are expected.
-
isClosed
public boolean isClosed()
- Returns:
- true if monitoring context has been closed and no more transfers are expected
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code of context
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- description of context
-
-