xmlBlaster 1.2 API

org.xmlBlaster.protocol
Interface I_ProgressListener


public interface I_ProgressListener

This interface is used to inform listeners about incoming data.

Author:
Marcel Ruff.

Method Summary
 void progressRead(java.lang.String name, long currBytesRead, long numBytes)
          Notification about the current data receive progress.
 void progressWrite(java.lang.String name, long currBytesWritten, long numBytes)
          Notification about the current data send progress.
 

Method Detail

progressRead

public void progressRead(java.lang.String name,
                         long currBytesRead,
                         long numBytes)
Notification about the current data receive progress.

The interval of notification is arbitrary and not guaranteed, each protocol driver may choose other strategies.

Parameters:
name - A qualifying name about the incoming request, can be empty.
currBytesRead - The number of bytes received up to now
numBytes - The overall number of bytes

progressWrite

public void progressWrite(java.lang.String name,
                          long currBytesWritten,
                          long numBytes)
Notification about the current data send progress.

The interval of notification is arbitrary and not guaranteed, each protocol driver may choose other strategies.

Parameters:
name - A qualifying name about the incoming request, can be empty.
currBytesWritten - The number of bytes send up to now
numBytes - The overall number of bytes

xmlBlaster 1.2 API

Copyright © 1999-2006 The xmlBlaster.org contributers.