public interface CacheLifecycle
Status
with each.
The Status of a newly created resource is Status.UNINITIALISED.| Modifier and Type | Method and Description |
|---|---|
Status |
getStatus()
Returns the cache status.
|
void |
start()
Notifies providers to start themselves.
|
void |
stop()
Providers may be doing all sorts of exotic things and need to be able to clean up on
stop.
|
void start()
getStatus() must return Status.STARTED.CacheException - if ????? TODO describe whenvoid stop()
IllegalStateException will be
Resources will change status to Status.STOPPED when this method completes.
Stop must free any JVM resources used.CacheException - if ????? TODO describe whenIllegalStateException - thrown if an operation is performed on a cache unless it is started.Copyright © 2019 WSO2 Inc. All Rights Reserved.