public class CleanupFile extends Object implements CompensableEndpointAware, CompensableBeanFactoryAware
ENDPOINT_FIELD_NAMEBEAN_FACTORY_FIELD_NAME| 构造器和说明 |
|---|
CleanupFile(String resourceName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeQuietly(Closeable closeable) |
void |
delete(CleanupRecord record) |
void |
destroy() |
void |
forget(CleanupRecord record) |
void |
forget(Xid xid,
String resourceId) |
CompensableBeanFactory |
getBeanFactory() |
File |
getDirectory() |
String |
getEndpoint() |
Map<String,Set<CleanupRecord>> |
getRecordMap() |
byte |
initialize(boolean master) |
void |
markMaster() |
void |
markPrepare() |
void |
markSlaver() |
void |
setBeanFactory(CompensableBeanFactory tbf) |
void |
setDirectory(File directory) |
void |
setEndpoint(String identifier) |
void |
startupRecover() |
void |
timingCompress() |
public CleanupFile(String resourceName)
public byte initialize(boolean master)
public void markMaster()
public void markPrepare()
public void markSlaver()
public void startupRecover()
throws RuntimeException
RuntimeExceptionpublic void timingCompress()
throws RuntimeException
RuntimeExceptionpublic void forget(CleanupRecord record) throws RuntimeException
RuntimeExceptionpublic void forget(Xid xid, String resourceId) throws RuntimeException
RuntimeExceptionpublic void delete(CleanupRecord record) throws RuntimeException
RuntimeExceptionpublic void destroy()
public void closeQuietly(Closeable closeable)
public Map<String,Set<CleanupRecord>> getRecordMap()
public CompensableBeanFactory getBeanFactory()
getBeanFactory 在接口中 CompensableBeanFactoryAwarepublic void setBeanFactory(CompensableBeanFactory tbf)
setBeanFactory 在接口中 CompensableBeanFactoryAwarepublic String getEndpoint()
getEndpoint 在接口中 CompensableEndpointAwarepublic void setEndpoint(String identifier)
setEndpoint 在接口中 CompensableEndpointAwarepublic File getDirectory()
public void setDirectory(File directory)
Copyright © 2018. All rights reserved.