/** * Convenient method to publish a request content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a response content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a request byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_BYTE_TRANSFER_EVENT, bytes); }
/** * Convenient method to publish a response byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_BYTE_TRANSFER_EVENT, bytes); }
/** * Convenient method to publish a response byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_BYTE_TRANSFER_EVENT, bytes); }
/** * Convenient method to publish a request content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a response content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a request byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_BYTE_TRANSFER_EVENT, bytes); }
/** * Convenient method to publish a request content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a response content length event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseContentLength( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_CONTENT_LENGTH_EVENT, bytes); }
/** * Convenient method to publish a request byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishRequestBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, REQUEST_BYTE_TRANSFER_EVENT, bytes); }
/** * Convenient method to publish a response byte transfer event to the given * listener. * * @param listener * must not be null or else the publication will be skipped * @param bytes * must be non-negative or else the publication will be skipped */ public static Future<?> publishResponseBytesTransferred( final ProgressListener listener, final long bytes) { return publishByteCountEvent(listener, RESPONSE_BYTE_TRANSFER_EVENT, bytes); }