Package com.ngrok.services
Class EventSources.CreateCallBuilder
java.lang.Object
com.ngrok.services.EventSources.CreateCallBuilder
- Enclosing class:
- EventSources
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.Type of event for which an event subscription will triggerType of event for which an event subscription will trigger
-
Method Details
-
type
Type of event for which an event subscription will trigger- Parameters:
type
- the value of the type parameter as aString
- Returns:
- the call builder instance
-
type
Type of event for which an event subscription will trigger -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofEventSource
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EventSource
- Throws:
InterruptedException
- if the thread was interrupted during the call
-