public class InteractiveSignedObjectIdSource extends Object implements SignedObjectIdSource
SignedObjectIdSource
that you can add items to that blocks until a next item becomes available or
complete()
is called.Constructor and Description |
---|
InteractiveSignedObjectIdSource() |
Modifier and Type | Method and Description |
---|---|
void |
add(String objectId)
Adds an object ID to be
returned by this source. |
void |
complete()
Marks the source as complete.
|
boolean |
hasNext() |
String |
next() |
public void add(@Nonnull String objectId)
returned
by this source.objectId
- the next object IDpublic void complete()
public boolean hasNext()
hasNext
in interface SignedObjectIdSource
true
if there are any more object IDs to be resolved.@Nonnull public String next()
next
in interface SignedObjectIdSource
Copyright © 2019 Atlassian. All rights reserved.