public interface CacheLifecycle
Status
with each.
The Status
of a newly created resource is Status.UNINITIALISED
.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 © 2013. All Rights Reserved.