Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setTransferredBytes (0.1 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java

            Long transferred;
            synchronized (transfers) {
                transferred = transfers.remove(transferEvent.getResource());
            }
            if (transferred != null) {
                event.setTransferredBytes(transferred);
            }
    
            synchronized (artifacts) {
                artifacts.remove(transferEvent.getResource());
            }
    
            listener.transferCompleted(event);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java

                final int bytes) {
            TransferEvent event = new TransferEvent.Builder(session, resource)
                    .setType(TransferEvent.EventType.PROGRESSED)
                    .setTransferredBytes(bytes)
                    .build();
            startLatch.countDown();
            try {
                listener.transferProgressed(event);
            } catch (TransferCancelledException e) {
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

         */
        public void setLocalFile(File localFile) {
            this.localFile = localFile;
        }
    
        public long getTransferredBytes() {
            return transferredBytes;
        }
    
        public void setTransferredBytes(long transferredBytes) {
            this.transferredBytes = transferredBytes;
        }
    
        public byte[] getDataBuffer() {
            return dataBuffer;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top