Class BoxEventsManager
- java.lang.Object
-
- org.apache.camel.component.box.api.BoxEventsManager
-
public class BoxEventsManager extends Object
Provides operations to manage Box events.
-
-
Constructor Summary
Constructors Constructor Description BoxEventsManager(com.box.sdk.BoxAPIConnection boxConnection)
Create events manager to manage the events of Box connection's authenticated user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
listen(com.box.sdk.EventListener listener, Long startingPosition)
Create an event stream with optional starting initial position and add listener that will be notified when an event is received.void
stopListening()
-
-
-
Method Detail
-
listen
public void listen(com.box.sdk.EventListener listener, Long startingPosition)
Create an event stream with optional starting initial position and add listener that will be notified when an event is received.- Parameters:
startingPosition
- - the starting position of the event stream.listener
- - the listener to add to event stream.
-
stopListening
public void stopListening()
-
-