public interface StashFactory
Modifier and Type | Method and Description |
---|---|
StashService |
getStashService(java.lang.String stashUri)
Gets the currently active stash service interface for the stash resource
located at the specified URI.
|
Deferred<java.lang.Boolean> |
haltStashService(java.lang.String stashUri)
Halts the currently active stash service associated with the stash resource
located at a given URI.
|
Deferred<StashService> |
initStashService(java.lang.String stashUri)
Initialises a stash service for the stash resource located at a given URI.
|
Deferred<StashService> initStashService(java.lang.String stashUri)
file
This scheme initialises a stash resource on the local
file system which uses standard Java object serialization.stashUri
- This is the URI of the new stash resource to be created. The
specified URI scheme must be one of the schemes supported for
stash resource creation.StashService
will be passed back as
the deferred callback parameter. If the specified stash resource
does not already exist or cannot be created, an errback condition
will be generated which will pass back an exception object
indicating the reason for failure. This includes situations where a
URISyntaxException
is generated because a malformed or
unsupported URI has been provided.Deferred<java.lang.Boolean> haltStashService(java.lang.String stashUri)
getStashService(java.lang.String)
method.stashUri
- This is the URI of the stash resource for which the associated
stash service it to be halted. The specified URI scheme must be
one of the schemes supported for stash resource creation.URISyntaxException
is generated because a malformed
URI has been provided.StashService getStashService(java.lang.String stashUri) throws java.net.URISyntaxException
stashUri
- This is the URI for the stash resource which is to be accessed by
the stash service object.java.net.URISyntaxException
- This exception will be thrown if the supplied URI was malformed
or if it specified an unsupported URI scheme.