@Immutable @Loggable(value=1) public final class ReBucket extends Object implements Bucket
Bucket.Prefixed| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Bucket bkt) |
boolean |
exists()
Checks if the bucket exists.
|
Iterable<String> |
list(String pfx)
List object names with a given prefix.
|
String |
name()
Get bucket name.
|
Ocket |
ocket(String key)
Get object.
|
Region |
region()
Get region we're in.
|
void |
remove(String key)
Delete object from bucket.
|
String |
toString() |
public ReBucket(Bucket bkt)
bkt - Bucket we're inpublic boolean exists()
throws IOException
Bucketexists in interface Buckettrue, otherwise falseIOException - If any failure happens@RetryOnFailure(verbose=false) public void remove(String key) throws IOException
Bucketremove in interface Bucketkey - Name of it in the bucketIOException - If not found or any other failure@RetryOnFailure(verbose=false) public Iterable<String> list(String pfx) throws IOException
Bucketlist in interface Bucketpfx - Prefix to useIOException - If failspublic int compareTo(Bucket bkt)
compareTo in interface Comparable<Bucket>Copyright © 2012–2017 jcabi.com. All rights reserved.