public interface ReservedNameList
Modifier and Type | Field and Description |
---|---|
static int |
RESERVE_SECONDS_DEFAULT
Default number of seconds to reserve a name
|
Modifier and Type | Method and Description |
---|---|
void |
clearReservation(java.util.UUID reservation)
Releases a reservation for a name.
|
java.lang.String |
getName(java.util.UUID reservation)
Returns a reserved name.
|
java.util.UUID |
reserve(java.lang.String name)
Attempts to reserve the provided name.
|
static final int RESERVE_SECONDS_DEFAULT
java.util.UUID reserve(java.lang.String name) throws AlreadyExistsException
If the name is available, returns a token representing your reservation for the name. If you obtain a reservation for a name, you must present the reservation when creating an account; otherwise account creation fails since there is a reservation for that name.
name
- Name to reserveRESERVE_SECONDS_DEFAULT
seconds.AlreadyExistsException
- If name has an active reservation.java.lang.String getName(java.util.UUID reservation)
reservation
- The reservation for a namevoid clearReservation(java.util.UUID reservation)
reservation
- The reservation to release.