public interface AppRevisionRepository extends MultiDataCenterListener
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
allRevisionIds() |
Collection<String> |
availableRevisions() |
int |
cleanDeleted(Date beforeTime,
int limit) |
Map<String,Integer> |
countByApp() |
boolean |
exist(String revisionId)
check if revisionId exist
|
List<AppRevision> |
getExpired(Date beforeTime,
int limit) |
boolean |
heartbeat(String revision) |
boolean |
heartbeatDB(String revision) |
List<AppRevision> |
listFromStorage(long start,
int limit) |
AppRevision |
queryRevision(String revision)
get AppRevision
|
void |
register(AppRevision appRevision)
persistence appRevision
|
void |
replace(AppRevision appRevision) |
void |
startSynced() |
void |
waitSynced() |
dataCenters, setDataCentersvoid register(AppRevision appRevision) throws Exception
appRevision - appRevisionExceptionboolean exist(String revisionId)
revisionId - revisionIdAppRevision queryRevision(String revision)
revision - revisionboolean heartbeat(String revision)
boolean heartbeatDB(String revision)
Collection<String> availableRevisions()
List<AppRevision> listFromStorage(long start, int limit)
void startSynced()
void waitSynced()
List<AppRevision> getExpired(Date beforeTime, int limit)
void replace(AppRevision appRevision)
int cleanDeleted(Date beforeTime, int limit)
Copyright © 2023 The Ant Financial. All rights reserved.