public class BoxEventsManager extends Object
Provides operations to manage Box events.
Constructor and Description |
---|
BoxEventsManager(com.box.sdk.BoxAPIConnection boxConnection)
Create events manager to manage the events of Box connection's
authenticated user.
|
Modifier and Type | Method and 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() |
public BoxEventsManager(com.box.sdk.BoxAPIConnection boxConnection)
boxConnection
- - Box connection to authenticated user account.public void listen(com.box.sdk.EventListener listener, Long startingPosition)
startingPosition
- - the starting position of the event stream.listener
- - the listener to add to event stream.public void stopListening()
Apache Camel