Package com.cbe

Class TransferUploadEventProtocol


  • public class TransferUploadEventProtocol
    extends java.lang.Object
    Protocol for implementing a transfer upload delegate.
    Abstract base class which is used when you want notification on changes related to uploads. Note this class needs to be implemented by the user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      call delete on the delegate if you want garbage collector to clean up.
      void onChunkSent​(Object object, long sent, long total)
      Gets called when a chunk of data has successfully been recieved.
      void onObjectUploaded​(Object object)
      Gets called when a upload has been completed.
      void onObjectUploadFailed​(java.lang.String name, long objectId, long parentId, long atState, long status)
      Gets called when a error has occured in the upload stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransferUploadEventProtocol

        public TransferUploadEventProtocol()
    • Method Detail

      • delete

        public void delete()
        call delete on the delegate if you want garbage collector to clean up.
      • onObjectUploaded

        public void onObjectUploaded​(Object object)
        Gets called when a upload has been completed.
      • onObjectUploadFailed

        public void onObjectUploadFailed​(java.lang.String name,
                                         long objectId,
                                         long parentId,
                                         long atState,
                                         long status)
        Gets called when a error has occured in the upload stream.
      • onChunkSent

        public void onChunkSent​(Object object,
                                long sent,
                                long total)
        Gets called when a chunk of data has successfully been recieved.