com.atlassian.bitbucket.hook.HookService |
A service which handles the management of hook requests. It allows SCM providers to register hosting requests with the application and allow the SCM layer to callback to server via a socket
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform an operation with a hook request
| |||||||||||
Register a hosting request with the hook service.
|
Perform an operation with a hook request
repositoryId | the id of the repository the hosting request is for |
---|---|
callback | a callback which will handle the operation |
Register a hosting request with the hook service. It is the responsibility of the SCM provider to
call close()
when the request is complete.
It is suggested for implementers to use doWithHookRequest(int, java.util.function.Function)
if possible as this will clean up the request for the callee
repositoryId | the id of the repository the hosting request is for |
---|