Class BoxEventsManager


  • public class BoxEventsManager
    extends Object
    Provides operations to manage Box events.
    • Constructor Detail

      • 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 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()