| com.atlassian.bitbucket.throttle.TicketContext |
Provides information about a ticket.
Note: The actual Ticket is not available from this context. Event handlers which receive this
context on a TicketAcquiredEvent should not be able to
release tickets.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Registers a task that is executed when the ticket is released.
| |||||||||||
Retrieves the name of the resource associated with the ticket.
| |||||||||||
Registers a task that is executed when the ticket is released. If the ticket has already been released when the callback is added, the callback will be run immediately.
| callback | a task to execute when the ticket is released |
|---|
Retrieves the name of the resource associated with the ticket.