Class BitbucketBranchClientImpl
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.client.BitbucketBranchClientImpl
-
- All Implemented Interfaces:
BitbucketBranchClient
public class BitbucketBranchClientImpl extends Object implements BitbucketBranchClient
-
-
Constructor Summary
Constructors Constructor Description BitbucketBranchClientImpl(BitbucketRequestExecutor bitbucketRequestExecutor, String projectKey, String repositorySlug, TaskListener taskListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<BitbucketDefaultBranch>
getRemoteBranches()
Gets all branches from the given repository.
-
-
-
Constructor Detail
-
BitbucketBranchClientImpl
public BitbucketBranchClientImpl(BitbucketRequestExecutor bitbucketRequestExecutor, String projectKey, String repositorySlug, TaskListener taskListener)
-
-
Method Detail
-
getRemoteBranches
public Stream<BitbucketDefaultBranch> getRemoteBranches()
Description copied from interface:BitbucketBranchClient
Gets all branches from the given repository.The returned stream will make paged calls to Bitbucket to ensure that all branches are returned. Consumers are advised that this can return large amounts of data and are strongly encouraged to not collect to a list or similar before processing items, but rather process them as they come in.
Results will be ordered with the most recently-modified references returned first.
- Specified by:
getRemoteBranches
in interfaceBitbucketBranchClient
- Returns:
- Stream of bitbucket branches
- See Also:
SystemPropertiesConstants.REMOTE_BRANCHES_RETRIEVAL_MAX_PAGES
,SystemPropertiesConstants.REMOTE_BRANCHES_RETRIEVAL_PAGE_SIZE
-
-