Class BoxEventsManager
java.lang.Object
org.apache.camel.component.box.api.BoxEventsManager
Provides operations to manage Box events.
-
Constructor Summary
ConstructorsConstructorDescriptionBoxEventsManager(com.box.sdk.BoxAPIConnection boxConnection) Create events manager to manage the events of Box connection's authenticated user. -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate an event stream with optional starting initial position and add listener that will be notified when an event is received.void
-
Constructor Details
-
BoxEventsManager
public BoxEventsManager(com.box.sdk.BoxAPIConnection boxConnection) Create events manager to manage the events of Box connection's authenticated user.- Parameters:
boxConnection- - Box connection to authenticated user account.
-
-
Method Details
-
listen
Create an event stream with optional starting initial position and add listener that will be notified when an event is received.- Parameters:
listener- - the listener to add to event stream.startingPosition- - the starting position of the event stream.
-
stopListening
public void stopListening()
-