|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface BlobStoreService
Service exposing get, put and delete methods for blobs.
All parameters are not null, and NullPointerException will be thrown
if nulls are supplied as parameters.
| Method Summary | ||
|---|---|---|
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,java.lang.Boolean>> |
delete(java.lang.String key)
Deletes a blob. |
|
|
get(java.lang.String key,
Access options,
com.google.common.base.Function<com.atlassian.fugue.Option<GetResult>,A> f)
Gets a blob, and applies the function to it to produce a result. |
|
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,com.atlassian.fugue.Option<HeadResult>>> |
head(java.lang.String key,
Access options)
Gets the header information of a blob. |
|
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,PutResult>> |
put(java.lang.String key,
java.io.InputStream stream,
java.lang.Long contentLength)
Stores the given input stream into a new blob and returns the the blob's PutResult. |
|
| Method Detail |
|---|
<A> com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,A>> get(java.lang.String key,
Access options,
com.google.common.base.Function<com.atlassian.fugue.Option<GetResult>,A> f)
Internally, the input stream will be closed, the function does not need to handle closing the stream.
A - return type of the callback function. This must not be Void. If you don't want to return anything
from the function use Unit.key - the blob's logical keyoptions - request options, like caching parametersf - callback function. This function cannot return null. If you don't want to return anything
from the function use Unit.
Failure. Possible values are
value was returned by the callback.
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,PutResult>> put(java.lang.String key,
java.io.InputStream stream,
java.lang.Long contentLength)
PutResult.
key - the blob's logical keystream - data to uploadcontentLength - in bytes
PutResult of the written blob or a
Failure. Possible values are
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,java.lang.Boolean>> delete(java.lang.String key)
key - the blob's logical key
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Either<Failure,com.atlassian.fugue.Option<HeadResult>>> head(java.lang.String key,
Access options)
key - the blob's logical keyoptions - request options, like caching parameters
HeadResult of the the blob if it exists, None if it does not exist, or a
Failure in the event of any non-recoverable errors. Possible values are
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||