Package unlimited.fc.client.cache
Class CachedFileToDB
- java.lang.Object
-
- unlimited.fc.client.cache.CachedFileToDB
-
public class CachedFileToDB extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CachedFileToDB(long cachedFilekey, java.lang.String taskID, long modifiedTime, java.lang.String actualPath, java.lang.String clientID, java.lang.String siteId, boolean isUpload, java.util.function.Supplier<unlimited.core.util.common.logs.LogUtils> logs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetActualPath()longgetCachedFilekey()longgetCacheKey()java.lang.StringgetClientID()Currently this is the id of the HotFolder because no other clients are using the transfer cache.longgetDatabaseInsetionTime()java.util.function.Supplier<unlimited.core.util.common.logs.LogUtils>getLogs()longgetModifiedTime()java.lang.StringgetSiteId()java.lang.StringgetTaskID()inthashCode()booleanisOverwrittenBy(CachedFileToDB other)booleanisUpload()voidlog(java.util.function.Consumer<unlimited.core.util.common.logs.LogUtils> logMsg)java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLogs
public java.util.function.Supplier<unlimited.core.util.common.logs.LogUtils> getLogs()
-
getTaskID
public java.lang.String getTaskID()
-
getCachedFilekey
public long getCachedFilekey()
-
getModifiedTime
public long getModifiedTime()
-
getActualPath
public java.lang.String getActualPath()
-
getDatabaseInsetionTime
public long getDatabaseInsetionTime()
-
getClientID
public java.lang.String getClientID()
Currently this is the id of the HotFolder because no other clients are using the transfer cache.- Returns:
-
getSiteId
public java.lang.String getSiteId()
-
isUpload
public boolean isUpload()
-
getCacheKey
public long getCacheKey()
-
log
public void log(java.util.function.Consumer<unlimited.core.util.common.logs.LogUtils> logMsg)
-
isOverwrittenBy
public boolean isOverwrittenBy(CachedFileToDB other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-